1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mozglue/build/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,74 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +# Build mozglue as a shared lib on Windows, OSX and Android. 1.11 +# If this is ever changed, update MOZ_SHARED_MOZGLUE in browser/installer/Makefile.in 1.12 +if CONFIG['OS_TARGET'] in ('WINNT', 'Darwin', 'Android'): 1.13 + FORCE_SHARED_LIB = True 1.14 +else: 1.15 + FORCE_SHARED_LIB = False 1.16 + FORCE_STATIC_LIB = True 1.17 + 1.18 +if CONFIG['MOZ_MEMORY'] and (CONFIG['MOZ_NATIVE_JEMALLOC'] or FORCE_SHARED_LIB): 1.19 + pass 1.20 + # TODO: SHARED_LIBRARY_LIBS go here 1.21 +else: 1.22 + # Temporary, until bug 662814 lands 1.23 + NO_VISIBILITY_FLAGS = True 1.24 + SOURCES += [ 1.25 + 'dummy.cpp', 1.26 + ] 1.27 + 1.28 +if CONFIG['OS_TARGET'] == 'Android': 1.29 + SOURCES += [ 1.30 + 'BionicGlue.cpp', 1.31 + ] 1.32 + 1.33 +if CONFIG['OS_TARGET'] == 'WINNT': 1.34 + SOURCES += [ 1.35 + 'WindowsDllBlocklist.cpp', 1.36 + ] 1.37 + DEFFILE = 'mozglue.def' 1.38 + DISABLE_STL_WRAPPING = True 1.39 + 1.40 +if CONFIG['MOZ_NUWA_PROCESS']: 1.41 + EXPORTS.ipc += [ 1.42 + 'Nuwa.h', 1.43 + ] 1.44 + SOURCES += [ 1.45 + 'Nuwa.cpp', 1.46 + ] 1.47 + 1.48 +EXPORTS.mozilla += [ 1.49 + 'arm.h', 1.50 + 'SSE.h', 1.51 + 'WindowsDllBlocklist.h', 1.52 +] 1.53 + 1.54 +if CONFIG['CPU_ARCH'].startswith('x86'): 1.55 + SOURCES += [ 1.56 + 'SSE.cpp', 1.57 + ] 1.58 + 1.59 +if CONFIG['CPU_ARCH'] == 'arm': 1.60 + SOURCES += [ 1.61 + 'arm.cpp', 1.62 + ] 1.63 + 1.64 +if CONFIG['MOZ_ASAN']: 1.65 + SOURCES += [ 1.66 + 'AsanOptions.cpp', 1.67 + ] 1.68 + 1.69 + 1.70 +LIBRARY_NAME = 'mozglue' 1.71 + 1.72 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': 1.73 + SOURCES += [ 1.74 + 'cpuacct.c', 1.75 + ] 1.76 + 1.77 +DEFINES['IMPL_MFBT'] = True