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-03-19 11:47:00 -07:00
|
|
|
MODULE = 'mozglue'
|
|
|
|
|
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'):
|
|
|
|
# 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 10:52:00 -07:00
|
|
|
FORCE_STATIC_LIB = True
|
2013-04-23 14:54:15 -07: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 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-05-06 23:25:13 -07:00
|
|
|
if CONFIG['MOZ_NUWA_PROCESS']:
|
|
|
|
EXPORTS.ipc += [
|
|
|
|
'Nuwa.h',
|
|
|
|
]
|
|
|
|
|
2013-07-26 09:46:31 -07:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'arm.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'SSE.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',
|
|
|
|
]
|