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