2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:17 +04: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-24 01:54:15 +04: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-19 06:47:45 +04:00
|
|
|
FORCE_SHARED_LIB = True
|
2013-04-24 01:54:15 +04:00
|
|
|
else:
|
2013-11-19 06:47:45 +04:00
|
|
|
FORCE_SHARED_LIB = False
|
2013-10-24 21:52:00 +04:00
|
|
|
FORCE_STATIC_LIB = True
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2013-11-19 06:47:45 +04:00
|
|
|
if CONFIG['MOZ_MEMORY'] and (CONFIG['MOZ_NATIVE_JEMALLOC'] or FORCE_SHARED_LIB):
|
2013-04-24 01:54:15 +04:00
|
|
|
pass
|
|
|
|
# TODO: SHARED_LIBRARY_LIBS go here
|
|
|
|
else:
|
2013-10-24 23:06:19 +04:00
|
|
|
# Temporary, until bug 662814 lands
|
|
|
|
NO_VISIBILITY_FLAGS = True
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'dummy.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_TARGET'] == 'Android':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'BionicGlue.cpp',
|
|
|
|
]
|
2013-06-17 23:21:01 +04:00
|
|
|
|
2013-11-12 17:31:32 +04:00
|
|
|
if CONFIG['OS_TARGET'] == 'WINNT':
|
|
|
|
SOURCES += [
|
|
|
|
'WindowsDllBlocklist.cpp',
|
|
|
|
]
|
|
|
|
|
2013-05-07 10:25:13 +04:00
|
|
|
if CONFIG['MOZ_NUWA_PROCESS']:
|
|
|
|
EXPORTS.ipc += [
|
|
|
|
'Nuwa.h',
|
|
|
|
]
|
2013-10-30 02:51:03 +04:00
|
|
|
SOURCES += [
|
|
|
|
'Nuwa.cpp',
|
|
|
|
]
|
2013-05-07 10:25:13 +04:00
|
|
|
|
2013-07-26 20:46:31 +04:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'arm.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'SSE.h',
|
2013-11-12 17:31:32 +04:00
|
|
|
'WindowsDllBlocklist.h',
|
2013-07-26 20:46:31 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['CPU_ARCH'].startswith('x86'):
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-07-26 20:46:31 +04:00
|
|
|
'SSE.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['CPU_ARCH'] == 'arm':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-07-26 20:46:31 +04:00
|
|
|
'arm.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-29 04:44:00 +04:00
|
|
|
if CONFIG['MOZ_ASAN']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-07-29 04:44:00 +04:00
|
|
|
'AsanOptions.cpp',
|
|
|
|
]
|
2013-07-26 20:46:31 +04:00
|
|
|
|
|
|
|
|
2013-06-17 23:21:01 +04:00
|
|
|
LIBRARY_NAME = 'mozglue'
|
|
|
|
|
2013-09-21 01:37:36 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-09-21 01:37:36 +04:00
|
|
|
'cpuacct.c',
|
|
|
|
]
|