2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:17 -08: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/.
|
|
|
|
|
2013-04-23 14:54:15 -07:00
|
|
|
# Build mozglue as a shared lib on Windows, OSX and Android.
|
|
|
|
# If this is ever changed, update MOZ_SHARED_MOZGLUE in browser/installer/Makefile.in
|
|
|
|
if CONFIG['OS_TARGET'] in ('WINNT', 'Darwin', 'Android'):
|
2014-09-03 17:04:45 -07:00
|
|
|
SharedLibrary('mozglue')
|
2013-04-23 14:54:15 -07:00
|
|
|
else:
|
2014-09-03 17:04:45 -07:00
|
|
|
Library('mozglue')
|
2013-04-23 14:54:15 -07:00
|
|
|
|
2014-07-22 21:29:09 -07:00
|
|
|
SDK_LIBRARY = True
|
|
|
|
|
2013-11-18 18:47:45 -08:00
|
|
|
if CONFIG['MOZ_MEMORY'] and (CONFIG['MOZ_NATIVE_JEMALLOC'] or FORCE_SHARED_LIB):
|
2013-04-23 14:54:15 -07:00
|
|
|
pass
|
|
|
|
# TODO: SHARED_LIBRARY_LIBS go here
|
|
|
|
else:
|
2013-10-24 12:06:19 -07:00
|
|
|
# Temporary, until bug 662814 lands
|
|
|
|
NO_VISIBILITY_FLAGS = True
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'dummy.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_TARGET'] == 'Android':
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'BionicGlue.cpp',
|
|
|
|
]
|
2013-06-17 12:21:01 -07:00
|
|
|
|
2013-11-12 05:31:32 -08:00
|
|
|
if CONFIG['OS_TARGET'] == 'WINNT':
|
|
|
|
SOURCES += [
|
|
|
|
'WindowsDllBlocklist.cpp',
|
|
|
|
]
|
2014-02-11 08:28:54 -08:00
|
|
|
DEFFILE = 'mozglue.def'
|
2014-03-04 16:39:06 -08:00
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-08-05 15:25:33 -07:00
|
|
|
OS_LIBS += [
|
|
|
|
'version',
|
|
|
|
]
|
2013-11-12 05:31:32 -08:00
|
|
|
|
2013-05-06 23:25:13 -07:00
|
|
|
if CONFIG['MOZ_NUWA_PROCESS']:
|
|
|
|
EXPORTS.ipc += [
|
|
|
|
'Nuwa.h',
|
|
|
|
]
|
2013-10-29 15:51:03 -07:00
|
|
|
SOURCES += [
|
|
|
|
'Nuwa.cpp',
|
|
|
|
]
|
2013-05-06 23:25:13 -07:00
|
|
|
|
2013-07-26 09:46:31 -07:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'arm.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'SSE.h',
|
2013-11-12 05:31:32 -08:00
|
|
|
'WindowsDllBlocklist.h',
|
2013-07-26 09:46:31 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['CPU_ARCH'].startswith('x86'):
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-07-26 09:46:31 -07:00
|
|
|
'SSE.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['CPU_ARCH'] == 'arm':
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-07-26 09:46:31 -07:00
|
|
|
'arm.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-28 17:44:00 -07:00
|
|
|
if CONFIG['MOZ_ASAN']:
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-07-28 17:44:00 -07:00
|
|
|
'AsanOptions.cpp',
|
|
|
|
]
|
2013-07-26 09:46:31 -07:00
|
|
|
|
|
|
|
|
2014-07-22 21:30:52 -07:00
|
|
|
USE_LIBS += [
|
|
|
|
'mfbt',
|
|
|
|
]
|
|
|
|
|
2014-08-06 22:21:03 -07:00
|
|
|
if CONFIG['MOZ_LINKER']:
|
2014-07-22 21:30:52 -07:00
|
|
|
USE_LIBS += [
|
2014-08-06 22:21:03 -07:00
|
|
|
'zlib',
|
2014-07-22 21:30:52 -07:00
|
|
|
]
|
|
|
|
|
2013-09-20 14:37:36 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-09-20 14:37:36 -07:00
|
|
|
'cpuacct.c',
|
|
|
|
]
|
2013-11-27 05:55:07 -08:00
|
|
|
|
|
|
|
DEFINES['IMPL_MFBT'] = True
|