mozglue/build/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 # Build mozglue as a shared lib on Windows, OSX and Android.
michael@0 8 # If this is ever changed, update MOZ_SHARED_MOZGLUE in browser/installer/Makefile.in
michael@0 9 if CONFIG['OS_TARGET'] in ('WINNT', 'Darwin', 'Android'):
michael@0 10 FORCE_SHARED_LIB = True
michael@0 11 else:
michael@0 12 FORCE_SHARED_LIB = False
michael@0 13 FORCE_STATIC_LIB = True
michael@0 14
michael@0 15 if CONFIG['MOZ_MEMORY'] and (CONFIG['MOZ_NATIVE_JEMALLOC'] or FORCE_SHARED_LIB):
michael@0 16 pass
michael@0 17 # TODO: SHARED_LIBRARY_LIBS go here
michael@0 18 else:
michael@0 19 # Temporary, until bug 662814 lands
michael@0 20 NO_VISIBILITY_FLAGS = True
michael@0 21 SOURCES += [
michael@0 22 'dummy.cpp',
michael@0 23 ]
michael@0 24
michael@0 25 if CONFIG['OS_TARGET'] == 'Android':
michael@0 26 SOURCES += [
michael@0 27 'BionicGlue.cpp',
michael@0 28 ]
michael@0 29
michael@0 30 if CONFIG['OS_TARGET'] == 'WINNT':
michael@0 31 SOURCES += [
michael@0 32 'WindowsDllBlocklist.cpp',
michael@0 33 ]
michael@0 34 DEFFILE = 'mozglue.def'
michael@0 35 DISABLE_STL_WRAPPING = True
michael@0 36
michael@0 37 if CONFIG['MOZ_NUWA_PROCESS']:
michael@0 38 EXPORTS.ipc += [
michael@0 39 'Nuwa.h',
michael@0 40 ]
michael@0 41 SOURCES += [
michael@0 42 'Nuwa.cpp',
michael@0 43 ]
michael@0 44
michael@0 45 EXPORTS.mozilla += [
michael@0 46 'arm.h',
michael@0 47 'SSE.h',
michael@0 48 'WindowsDllBlocklist.h',
michael@0 49 ]
michael@0 50
michael@0 51 if CONFIG['CPU_ARCH'].startswith('x86'):
michael@0 52 SOURCES += [
michael@0 53 'SSE.cpp',
michael@0 54 ]
michael@0 55
michael@0 56 if CONFIG['CPU_ARCH'] == 'arm':
michael@0 57 SOURCES += [
michael@0 58 'arm.cpp',
michael@0 59 ]
michael@0 60
michael@0 61 if CONFIG['MOZ_ASAN']:
michael@0 62 SOURCES += [
michael@0 63 'AsanOptions.cpp',
michael@0 64 ]
michael@0 65
michael@0 66
michael@0 67 LIBRARY_NAME = 'mozglue'
michael@0 68
michael@0 69 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
michael@0 70 SOURCES += [
michael@0 71 'cpuacct.c',
michael@0 72 ]
michael@0 73
michael@0 74 DEFINES['IMPL_MFBT'] = True

mercurial