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: EXPORTS += [ michael@0: 'nsXPCOM.h', michael@0: 'nsXPCOMCID.h', michael@0: 'nsXPCOMCIDInternal.h', michael@0: 'nsXREAppData.h', michael@0: 'nsXULAppAPI.h', michael@0: 'xrecore.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla += [ michael@0: 'FileLocation.h', michael@0: 'IOInterposer.h', michael@0: 'LateWriteChecks.h', michael@0: 'Omnijar.h', michael@0: 'PoisonIOInterposer.h', michael@0: 'ServiceList.h', michael@0: 'Services.h', michael@0: 'XPCOM.h', michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: EXPORTS += ['nsWindowsDllInterceptor.h'] michael@0: EXPORTS.mozilla += ['perfprobe.h'] michael@0: SOURCES += [ michael@0: 'perfprobe.cpp', michael@0: 'PoisonIOInterposerBase.cpp', michael@0: 'PoisonIOInterposerWin.cpp', michael@0: ] michael@0: elif CONFIG['OS_ARCH'] == 'Darwin': michael@0: SOURCES += [ michael@0: 'mach_override.c', michael@0: 'PoisonIOInterposerBase.cpp', michael@0: 'PoisonIOInterposerMac.cpp', michael@0: ] michael@0: else: michael@0: SOURCES += ['PoisonIOInterposerStub.cpp'] michael@0: michael@0: include('../glue/objs.mozbuild') michael@0: michael@0: UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs michael@0: UNIFIED_SOURCES += xpcom_glue_src_cppsrcs michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'FrozenFunctions.cpp', michael@0: 'IOInterposer.cpp', michael@0: 'LateWriteChecks.cpp', michael@0: 'MainThreadIOLogger.cpp', michael@0: 'nsXPComInit.cpp', michael@0: 'nsXPCOMStrings.cpp', michael@0: 'Services.cpp', michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] != 'WINNT': michael@0: SOURCES += [ michael@0: 'NSPRInterposer.cpp', michael@0: ] michael@0: michael@0: # FileLocation.cpp and Omnijar.cpp cannot be built in unified mode because they michael@0: # use plarena.h. michael@0: SOURCES += [ michael@0: 'FileLocation.cpp', michael@0: 'Omnijar.cpp', michael@0: ] michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: LIBRARY_NAME = 'xpcom_core' michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xul' michael@0: michael@0: DEFINES['_IMPL_NS_STRINGAPI'] = True michael@0: DEFINES['OMNIJAR_NAME'] = CONFIG['OMNIJAR_NAME'] michael@0: michael@0: if CONFIG['TARGET_XPCOM_ABI']: michael@0: DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI'] michael@0: michael@0: if CONFIG['MOZ_OPTIMIZE']: michael@0: DEFINES['MOZ_OPTIMIZE'] = True michael@0: michael@0: GENERATED_INCLUDES += ['..'] michael@0: LOCAL_INCLUDES += [ michael@0: '../base', michael@0: '../components', michael@0: '../ds', michael@0: '../glue', michael@0: '../io', michael@0: '../reflect/xptinfo/src', michael@0: '../threads', michael@0: '/chrome/src', michael@0: '/docshell/base', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_VPX']: michael@0: LOCAL_INCLUDES += [ michael@0: '/media/libvpx', michael@0: ]