1# vim: set filetype=python: 2# This Source Code Form is subject to the terms of the Mozilla Public 3# License, v. 2.0. If a copy of the MPL was not distributed with this 4# file, You can obtain one at http://mozilla.org/MPL/2.0/. 5 6UNIFIED_SOURCES += [ 7 'caldate.c', 8 'icalarray.c', 9 'icalattach.c', 10 'icalcomponent.c', 11 'icalduration.c', 12 'icalenums.c', 13 'icalerror.c', 14 'icallangbind.c', 15 'icalmemory.c', 16 'icalmime.c', 17 'icalparameter.c', 18 'icalparser.c', 19 'icalperiod.c', 20 'icalproperty.c', 21 'icalrecur.c', 22 'icaltime.c', 23 'icaltimezone.c', 24 'icaltypes.c', 25 'icalvalue.c', 26 'pvl.c', 27 'sspm.c', 28 'vsnprintf.c', 29] 30 31SOURCES += [ 32 '!icalderivedparameter.c', 33 '!icalderivedproperty.c', 34 '!icalderivedvalue.c', 35 '!icalrestriction.c', 36] 37 38GENERATED_FILES += [ 39 'ical.h', 40 'icalderivedparameter.c', 41 'icalderivedparameter.h', 42 'icalderivedproperty.c', 43 'icalderivedproperty.h', 44 'icalderivedvalue.c', 45 'icalderivedvalue.h', 46 'icalrestriction.c', 47] 48 49EXPORTS += [ 50 '!ical.h' 51] 52 53# We allow warnings for third-party code that can be updated from upstream. 54AllowCompilerWarnings() 55 56FINAL_LIBRARY = 'xul' 57 58LOCAL_INCLUDES += [ 59 '../..' 60] 61 62DEFINES['HAVE_CONFIG_H'] = True 63DEFINES['HAVE_SNPRINTF'] = True 64 65if CONFIG['OS_TARGET'] == 'Darwin': 66 DEFINES['__USE_BSD'] = '1' 67