mozglue/linker/moz.build
author Brian Birtles <birtles@gmail.com>
Thu, 30 Mar 2017 13:10:07 +0900
changeset 399332 7788981a1e0255061121aa50e844e785ef008bcd
parent 361384 ae62367e77a92d321ca62a7dccab092feab74a1b
child 415458 a8034115e08f52537e2c428819135064cb42c862
permissions -rw-r--r--
Bug 1353208 - Use UniquePtr for handling heap-allocated nsISMILAttr objects; r=dholbert MozReview-Commit-ID: 10lA0ZaXChj

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

SOURCES += [
    'BaseElf.cpp',
    'CustomElf.cpp',
    'ElfLoader.cpp',
    'Mappable.cpp',
    'SeekableZStream.cpp',
    'XZStream.cpp',
    'Zip.cpp',
]

Library('linker')

HOST_SOURCES += [
    'SeekableZStream.cpp',
    'szip.cpp',
]

HostProgram('szip')

FINAL_LIBRARY = 'mozglue'

DEFINES['IMPL_MFBT'] = True

DISABLE_STL_WRAPPING = True

TEST_DIRS += ['tests']

HOST_OS_LIBS += [
    'z',
]

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

if CONFIG['GNU_CXX']:
    CXXFLAGS += ['-Wno-error=shadow']

DEFINES['XZ_USE_CRC64'] = 1

USE_LIBS += [
    'xz-embedded',
]