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'):
|
2013-11-18 18:47:45 -08:00
|
|
|
FORCE_SHARED_LIB = True
|
2013-04-23 14:54:15 -07:00
|
|
|
else:
|
2013-11-18 18:47:45 -08:00
|
|
|
FORCE_SHARED_LIB = False
|
2013-10-24 10:52:00 -07:00
|
|
|
FORCE_STATIC_LIB = True
|
2013-04-23 14:54:15 -07:00
|
|
|
|
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
|
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
|
|
|
|
|
|
|
|
2013-06-17 12:21:01 -07:00
|
|
|
LIBRARY_NAME = 'mozglue'
|
|
|
|
|
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
|