2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:20:02 -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-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsXPCOM.h',
|
|
|
|
'nsXPCOMCID.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsXPCOMCIDInternal.h',
|
|
|
|
'nsXREAppData.h',
|
|
|
|
'nsXULAppAPI.h',
|
|
|
|
'xrecore.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'FileLocation.h',
|
2014-03-14 15:35:01 -07:00
|
|
|
'IOInterposer.h',
|
2013-11-05 04:45:20 -08:00
|
|
|
'LateWriteChecks.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'Omnijar.h',
|
2013-11-05 04:45:20 -08:00
|
|
|
'PoisonIOInterposer.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'ServiceList.h',
|
|
|
|
'Services.h',
|
|
|
|
'XPCOM.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2014-03-14 15:35:01 -07:00
|
|
|
EXPORTS += ['nsWindowsDllInterceptor.h']
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS.mozilla += ['perfprobe.h']
|
2014-03-18 15:24:36 -07:00
|
|
|
SOURCES += [
|
|
|
|
'perfprobe.cpp',
|
|
|
|
'PoisonIOInterposerBase.cpp',
|
|
|
|
'PoisonIOInterposerWin.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_ARCH'] == 'Darwin':
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-10-31 18:30:45 -07:00
|
|
|
'mach_override.c',
|
2013-11-05 04:45:20 -08:00
|
|
|
'PoisonIOInterposerBase.cpp',
|
|
|
|
'PoisonIOInterposerMac.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-11-18 10:21:26 -08:00
|
|
|
else:
|
|
|
|
SOURCES += ['PoisonIOInterposerStub.cpp']
|
2013-04-23 14:54:15 -07:00
|
|
|
|
2013-08-30 06:09:06 -07:00
|
|
|
include('../glue/objs.mozbuild')
|
|
|
|
|
2013-11-18 18:34:00 -08:00
|
|
|
UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs
|
|
|
|
UNIFIED_SOURCES += xpcom_glue_src_cppsrcs
|
2013-08-30 06:09:06 -07:00
|
|
|
|
2013-11-18 18:34:00 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'FrozenFunctions.cpp',
|
2014-03-18 15:24:36 -07:00
|
|
|
'IOInterposer.cpp',
|
2013-11-05 04:45:20 -08:00
|
|
|
'LateWriteChecks.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsXPComInit.cpp',
|
|
|
|
'nsXPCOMStrings.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'Services.cpp',
|
|
|
|
]
|
2013-08-21 23:56:01 -07:00
|
|
|
|
2014-03-18 15:24:36 -07:00
|
|
|
if CONFIG['OS_ARCH'] != 'WINNT':
|
2014-03-14 15:35:01 -07:00
|
|
|
SOURCES += [
|
2014-03-18 15:24:36 -07:00
|
|
|
'NSPRInterposer.cpp',
|
2014-03-14 15:35:01 -07:00
|
|
|
]
|
|
|
|
|
2013-11-21 13:36:59 -08:00
|
|
|
# FileLocation.cpp and Omnijar.cpp cannot be built in unified mode because they
|
|
|
|
# use plarena.h.
|
|
|
|
SOURCES += [
|
|
|
|
'FileLocation.cpp',
|
|
|
|
'Omnijar.cpp',
|
|
|
|
]
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-08-15 06:02:09 -07:00
|
|
|
LIBRARY_NAME = 'xpcom_core'
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 05:55:07 -08:00
|
|
|
|
|
|
|
DEFINES['_IMPL_NS_STRINGAPI'] = True
|
|
|
|
DEFINES['OMNIJAR_NAME'] = CONFIG['OMNIJAR_NAME']
|
|
|
|
|
|
|
|
if CONFIG['TARGET_XPCOM_ABI']:
|
|
|
|
DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
|
2013-12-18 12:03:11 -08:00
|
|
|
|
|
|
|
if CONFIG['MOZ_OPTIMIZE']:
|
|
|
|
DEFINES['MOZ_OPTIMIZE'] = True
|
2014-02-18 06:01:06 -08:00
|
|
|
|
|
|
|
GENERATED_INCLUDES += ['..']
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../base',
|
|
|
|
'../components',
|
|
|
|
'../ds',
|
|
|
|
'../glue',
|
|
|
|
'../io',
|
|
|
|
'../reflect/xptinfo/src',
|
|
|
|
'../threads',
|
|
|
|
'/chrome/src',
|
|
|
|
'/docshell/base',
|
|
|
|
]
|
2014-02-25 13:35:13 -08:00
|
|
|
|
|
|
|
if CONFIG['MOZ_VPX']:
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/media/libvpx',
|
|
|
|
]
|