summaryrefslogtreecommitdiff
path: root/src/third_party/timelib-2018.03/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/timelib-2018.03/SConscript')
-rw-r--r--src/third_party/timelib-2018.03/SConscript61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/third_party/timelib-2018.03/SConscript b/src/third_party/timelib-2018.03/SConscript
new file mode 100644
index 00000000000..67830d9ccfb
--- /dev/null
+++ b/src/third_party/timelib-2018.03/SConscript
@@ -0,0 +1,61 @@
+# This is a generated file, please do not modify. It is generated by
+# timelib_get_sources.sh
+
+Import('env')
+
+env = env.Clone()
+
+try:
+ env.AppendUnique(CCFLAGS=[
+ '-DHAVE_GETTIMEOFDAY',
+ '-DHAVE_STRING_H',
+ ])
+ if env.TargetOSIs('windows'):
+ env.AppendUnique(CCFLAGS=[
+ '-DHAVE_IO_H',
+ '-DHAVE_WINSOCK2_H',
+ ])
+
+ # C4996: '...': was declared deprecated
+ env.Append(CCFLAGS=['/wd4996'])
+ elif env.TargetOSIs('solaris'):
+ env.AppendUnique(CCFLAGS=[
+ '-DHAVE_DIRENT_H',
+ '-DHAVE_STRINGS_H',
+ '-DHAVE_UNISTD_H',
+ '-D_POSIX_C_SOURCE=200112L',
+ ])
+ elif env.TargetOSIs('darwin'):
+ env.AppendUnique(CCFLAGS=[
+ '-DHAVE_DIRENT_H',
+ '-DHAVE_SYS_TIME_H',
+ '-DHAVE_UNISTD_H',
+ ])
+ else:
+ env.AppendUnique(CCFLAGS=[
+ '-DHAVE_DIRENT_H',
+ '-DHAVE_SYS_TIME_H',
+ '-DHAVE_UNISTD_H',
+ '-D_GNU_SOURCE',
+ ])
+except ValueError:
+ pass
+
+env.Library(
+ target='timelib',
+ source=[
+ 'astro.c',
+ 'dow.c',
+ 'interval.c',
+ 'parse_date.c',
+ 'parse_iso_intervals.c',
+ 'parse_tz.c',
+ 'parse_zoneinfo.c',
+ 'timelib.c',
+ 'tm2unixtime.c',
+ 'unixtime2tm.c',
+ ],
+ LIBDEPS_TAGS=[
+ 'init-no-global-side-effects',
+ ],
+)