2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:18 -08: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 11:43:45 -08:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Build Config')
|
|
|
|
|
2015-05-08 16:24:18 -07:00
|
|
|
DIST_INSTALL = False
|
2013-10-24 12:06:19 -07: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 13:51:15 -07:00
|
|
|
|
2013-02-25 12:47:18 -08:00
|
|
|
CONFIGURE_SUBST_FILES += [
|
|
|
|
'doxygen.cfg',
|
|
|
|
'makefiles/test/Makefile',
|
|
|
|
'tests/makefiles/autodeps/Makefile',
|
|
|
|
'tests/src-simple/Makefile',
|
|
|
|
]
|
|
|
|
|
2013-06-11 08:31:11 -07:00
|
|
|
if CONFIG['HOST_OS_ARCH'] != 'WINNT':
|
2013-10-24 16:23:05 -07:00
|
|
|
HOST_SOURCES += [
|
2013-06-11 08:31:11 -07:00
|
|
|
'nsinstall.c',
|
|
|
|
'pathsub.c',
|
|
|
|
]
|
2014-09-02 22:10:54 -07:00
|
|
|
HostProgram('nsinstall_real')
|
2013-11-22 06:03:21 -08:00
|
|
|
|
2013-12-06 05:08:52 -08:00
|
|
|
if CONFIG['MOZ_SHARED_ICU']:
|
|
|
|
DEFINES['MOZ_SHARED_ICU'] = True
|
2014-07-28 08:51:12 -07:00
|
|
|
|
|
|
|
PYTHON_UNIT_TESTS += [
|
2015-03-02 09:43:11 -08:00
|
|
|
'tests/test_mozbuild_reading.py',
|
2014-07-28 08:51:12 -07:00
|
|
|
'tests/unit-expandlibs.py',
|
|
|
|
'tests/unit-mozunit.py',
|
|
|
|
'tests/unit-nsinstall.py',
|
|
|
|
'tests/unit-printprereleasesuffix.py',
|
|
|
|
]
|
2015-07-22 08:04:32 -07:00
|
|
|
|
|
|
|
if CONFIG['GNU_CC'] and CONFIG['MOZ_OPTIMIZE']:
|
|
|
|
CFLAGS += ['-O3']
|
2015-08-30 17:05:38 -07:00
|
|
|
|
2015-09-08 08:35:43 -07:00
|
|
|
HOST_DEFINES = {
|
|
|
|
'UNICODE': True,
|
|
|
|
'_UNICODE': True,
|
|
|
|
}
|