mozglue/linker/moz.build
author Kim Moir <kmoir@mozilla.com>
Mon, 04 Jul 2016 20:21:10 -0400
changeset 333817 c2280cbee4ed9092158c59bd9ba224a3bf909afa
parent 284086 3492202f465e1572cdbc4cf930b31f10e7735ab2
child 326231 2572c0758dd4377a832c1e8ed16522dc829634ad
permissions -rw-r--r--
Bug 1135781 - generate builds per checkin on beta/release/esr that allow installation of unsigned addons r=jlund a=test-only

# -*- Mode: python; c-basic-offset: 4; 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',
    '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