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:17 +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/.
|
|
|
|
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2014-10-06 22:42:18 +00:00
|
|
|
'BaseElf.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'CustomElf.cpp',
|
|
|
|
'ElfLoader.cpp',
|
|
|
|
'Mappable.cpp',
|
|
|
|
'SeekableZStream.cpp',
|
|
|
|
'Zip.cpp',
|
|
|
|
]
|
|
|
|
|
2014-09-03 05:10:54 +00:00
|
|
|
Library('linker')
|
2013-06-17 19:21:01 +00:00
|
|
|
|
2013-10-24 23:23:05 +00:00
|
|
|
HOST_SOURCES += [
|
2013-09-12 17:32:27 +00:00
|
|
|
'SeekableZStream.cpp',
|
|
|
|
'szip.cpp',
|
|
|
|
]
|
2013-10-24 17:51:00 +00:00
|
|
|
|
2014-09-03 05:10:54 +00:00
|
|
|
HostProgram('szip')
|
2013-11-01 23:44:11 +00:00
|
|
|
|
2013-11-19 02:47:14 +00:00
|
|
|
FINAL_LIBRARY = 'mozglue'
|
2013-11-27 13:55:07 +00:00
|
|
|
|
|
|
|
DEFINES['IMPL_MFBT'] = True
|
2014-03-05 00:39:06 +00:00
|
|
|
|
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-07-24 22:14:21 +00:00
|
|
|
|
2014-07-28 23:55:55 +00:00
|
|
|
TEST_DIRS += ['tests']
|
2014-08-05 22:26:05 +00:00
|
|
|
|
|
|
|
HOST_OS_LIBS += [
|
|
|
|
'z',
|
|
|
|
]
|
2015-09-08 15:35:43 +00:00
|
|
|
|
|
|
|
if CONFIG['TARGET_CPU'] == 'arm':
|
|
|
|
if CONFIG['MOZ_THUMB2']:
|
|
|
|
HOST_DEFINES['TARGET_THUMB'] = True
|
|
|
|
else:
|
|
|
|
HOST_DEFINES['TARGET_ARM'] = True
|
|
|
|
|
|
|
|
if CONFIG['CPU_ARCH'] == 'x86':
|
|
|
|
HOST_DEFINES['TARGET_X86'] = True
|
2016-05-11 07:00:01 +00:00
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|