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