michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # Build mozglue as a shared lib on Windows, OSX and Android. michael@0: # If this is ever changed, update MOZ_SHARED_MOZGLUE in browser/installer/Makefile.in michael@0: if CONFIG['OS_TARGET'] in ('WINNT', 'Darwin', 'Android'): michael@0: FORCE_SHARED_LIB = True michael@0: else: michael@0: FORCE_SHARED_LIB = False michael@0: FORCE_STATIC_LIB = True michael@0: michael@0: if CONFIG['MOZ_MEMORY'] and (CONFIG['MOZ_NATIVE_JEMALLOC'] or FORCE_SHARED_LIB): michael@0: pass michael@0: # TODO: SHARED_LIBRARY_LIBS go here michael@0: else: michael@0: # Temporary, until bug 662814 lands michael@0: NO_VISIBILITY_FLAGS = True michael@0: SOURCES += [ michael@0: 'dummy.cpp', michael@0: ] michael@0: michael@0: if CONFIG['OS_TARGET'] == 'Android': michael@0: SOURCES += [ michael@0: 'BionicGlue.cpp', michael@0: ] michael@0: michael@0: if CONFIG['OS_TARGET'] == 'WINNT': michael@0: SOURCES += [ michael@0: 'WindowsDllBlocklist.cpp', michael@0: ] michael@0: DEFFILE = 'mozglue.def' michael@0: DISABLE_STL_WRAPPING = True michael@0: michael@0: if CONFIG['MOZ_NUWA_PROCESS']: michael@0: EXPORTS.ipc += [ michael@0: 'Nuwa.h', michael@0: ] michael@0: SOURCES += [ michael@0: 'Nuwa.cpp', michael@0: ] michael@0: michael@0: EXPORTS.mozilla += [ michael@0: 'arm.h', michael@0: 'SSE.h', michael@0: 'WindowsDllBlocklist.h', michael@0: ] michael@0: michael@0: if CONFIG['CPU_ARCH'].startswith('x86'): michael@0: SOURCES += [ michael@0: 'SSE.cpp', michael@0: ] michael@0: michael@0: if CONFIG['CPU_ARCH'] == 'arm': michael@0: SOURCES += [ michael@0: 'arm.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_ASAN']: michael@0: SOURCES += [ michael@0: 'AsanOptions.cpp', michael@0: ] michael@0: michael@0: michael@0: LIBRARY_NAME = 'mozglue' michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: SOURCES += [ michael@0: 'cpuacct.c', michael@0: ] michael@0: michael@0: DEFINES['IMPL_MFBT'] = True