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