timestamp.mozbuild (836B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 SOURCES += [ 8 "/mozglue/misc/Now.cpp", 9 "/mozglue/misc/TimeStamp.cpp", 10 "/mozglue/misc/Uptime.cpp", 11 ] 12 if CONFIG["OS_TARGET"] == "WINNT": 13 SOURCES += [ 14 "/mozglue/misc/TimeStamp_windows.cpp", 15 ] 16 elif CONFIG["OS_TARGET"] == "Darwin": 17 SOURCES += [ 18 "/mozglue/misc/TimeStamp_darwin.cpp", 19 ] 20 elif CONFIG["HAVE_CLOCK_MONOTONIC"]: 21 SOURCES += [ 22 "/mozglue/misc/TimeStamp_posix.cpp", 23 ] 24 elif CONFIG["COMPILE_ENVIRONMENT"]: 25 error("No TimeStamp implementation on this platform. Build will not succeed")