2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:18 +00:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2015-02-26 19:43:45 +00:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Build Config')
|
|
|
|
|
2015-05-08 23:24:18 +00:00
|
|
|
DIST_INSTALL = False
|
2013-10-24 19:06:19 +00:00
|
|
|
# For sanity's sake, we compile nsinstall without the wrapped system
|
|
|
|
# headers, so that we can use it to set up the wrapped system headers.
|
|
|
|
NO_VISIBILITY_FLAGS = True
|
2013-10-02 20:51:15 +00:00
|
|
|
|
2013-02-25 20:47:18 +00:00
|
|
|
CONFIGURE_SUBST_FILES += [
|
|
|
|
'doxygen.cfg',
|
|
|
|
'makefiles/test/Makefile',
|
|
|
|
'tests/makefiles/autodeps/Makefile',
|
|
|
|
'tests/src-simple/Makefile',
|
|
|
|
]
|
|
|
|
|
2013-06-11 15:31:11 +00:00
|
|
|
if CONFIG['HOST_OS_ARCH'] != 'WINNT':
|
2013-10-24 23:23:05 +00:00
|
|
|
HOST_SOURCES += [
|
2013-06-11 15:31:11 +00:00
|
|
|
'nsinstall.c',
|
|
|
|
'pathsub.c',
|
|
|
|
]
|
2016-02-18 00:03:01 +00:00
|
|
|
# stdc++compat depends on config/export, so avoid a circular
|
|
|
|
# dependency added by HostProgram depending on stdc++compat,
|
|
|
|
# while the program here is in C.
|
|
|
|
HostProgram('nsinstall_real', c_only=True)
|
2013-11-22 14:03:21 +00:00
|
|
|
|
2016-02-11 13:21:16 +00:00
|
|
|
if CONFIG['MOZ_SYSTEM_ICU']:
|
|
|
|
DEFINES['MOZ_SYSTEM_ICU'] = True
|
2014-07-28 15:51:12 +00:00
|
|
|
|
|
|
|
PYTHON_UNIT_TESTS += [
|
2015-03-02 17:43:11 +00:00
|
|
|
'tests/test_mozbuild_reading.py',
|
2014-07-28 15:51:12 +00:00
|
|
|
'tests/unit-expandlibs.py',
|
|
|
|
'tests/unit-mozunit.py',
|
|
|
|
'tests/unit-nsinstall.py',
|
|
|
|
'tests/unit-printprereleasesuffix.py',
|
|
|
|
]
|
2015-07-22 15:04:32 +00:00
|
|
|
|
|
|
|
if CONFIG['GNU_CC'] and CONFIG['MOZ_OPTIMIZE']:
|
|
|
|
CFLAGS += ['-O3']
|
2015-08-31 00:05:38 +00:00
|
|
|
|
2015-09-08 15:35:43 +00:00
|
|
|
HOST_DEFINES = {
|
|
|
|
'UNICODE': True,
|
|
|
|
'_UNICODE': True,
|
|
|
|
}
|