2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:17 +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/.
|
|
|
|
|
2019-11-21 17:57:24 +03:00
|
|
|
if CONFIG['MOZ_LINKER']:
|
|
|
|
SOURCES += [
|
|
|
|
'BaseElf.cpp',
|
|
|
|
'CustomElf.cpp',
|
|
|
|
'ElfLoader.cpp',
|
|
|
|
'Mappable.cpp',
|
|
|
|
'XZStream.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
# When the linker is disabled, we still need Zip for mozglue/android.
|
|
|
|
# Logging is a required dependency.
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2019-11-21 17:57:24 +03:00
|
|
|
'Logging.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'Zip.cpp',
|
|
|
|
]
|
|
|
|
|
2014-09-03 09:10:54 +04:00
|
|
|
Library('linker')
|
2013-06-17 23:21:01 +04:00
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'mozglue'
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2019-05-16 04:02:00 +03:00
|
|
|
TEST_DIRS += ['tests']
|
2014-08-06 02:26:05 +04:00
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|
2016-10-04 23:20:52 +03:00
|
|
|
|
2016-10-12 02:39:54 +03:00
|
|
|
DEFINES['XZ_USE_CRC64'] = 1
|
|
|
|
|
2016-10-04 23:20:52 +03:00
|
|
|
USE_LIBS += [
|
|
|
|
'xz-embedded',
|
|
|
|
]
|