xpcom/build/moz.build

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     2 # vim: set filetype=python:
     3 # This Source Code Form is subject to the terms of the Mozilla Public
     4 # License, v. 2.0. If a copy of the MPL was not distributed with this
     5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     7 EXPORTS += [
     8     'nsXPCOM.h',
     9     'nsXPCOMCID.h',
    10     'nsXPCOMCIDInternal.h',
    11     'nsXREAppData.h',
    12     'nsXULAppAPI.h',
    13     'xrecore.h',
    14 ]
    16 EXPORTS.mozilla += [
    17     'FileLocation.h',
    18     'IOInterposer.h',
    19     'LateWriteChecks.h',
    20     'Omnijar.h',
    21     'PoisonIOInterposer.h',
    22     'ServiceList.h',
    23     'Services.h',
    24     'XPCOM.h',
    25 ]
    27 if CONFIG['OS_ARCH'] == 'WINNT':
    28     EXPORTS += ['nsWindowsDllInterceptor.h']
    29     EXPORTS.mozilla += ['perfprobe.h']
    30     SOURCES += [
    31         'perfprobe.cpp',
    32         'PoisonIOInterposerBase.cpp',
    33         'PoisonIOInterposerWin.cpp',
    34     ]
    35 elif CONFIG['OS_ARCH'] == 'Darwin':
    36     SOURCES += [
    37         'mach_override.c',
    38         'PoisonIOInterposerBase.cpp',
    39         'PoisonIOInterposerMac.cpp',
    40     ]
    41 else:
    42     SOURCES += ['PoisonIOInterposerStub.cpp']
    44 include('../glue/objs.mozbuild')
    46 UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs
    47 UNIFIED_SOURCES += xpcom_glue_src_cppsrcs
    49 UNIFIED_SOURCES += [
    50     'FrozenFunctions.cpp',
    51     'IOInterposer.cpp',
    52     'LateWriteChecks.cpp',
    53     'MainThreadIOLogger.cpp',
    54     'nsXPComInit.cpp',
    55     'nsXPCOMStrings.cpp',
    56     'Services.cpp',
    57 ]
    59 if CONFIG['OS_ARCH'] != 'WINNT':
    60     SOURCES += [
    61         'NSPRInterposer.cpp',
    62     ]
    64 # FileLocation.cpp and Omnijar.cpp cannot be built in unified mode because they
    65 # use plarena.h.
    66 SOURCES += [
    67     'FileLocation.cpp',
    68     'Omnijar.cpp',
    69 ]
    71 MSVC_ENABLE_PGO = True
    73 LIBRARY_NAME = 'xpcom_core'
    75 include('/ipc/chromium/chromium-config.mozbuild')
    77 FINAL_LIBRARY = 'xul'
    79 DEFINES['_IMPL_NS_STRINGAPI'] = True
    80 DEFINES['OMNIJAR_NAME'] = CONFIG['OMNIJAR_NAME']
    82 if CONFIG['TARGET_XPCOM_ABI']:
    83     DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
    85 if CONFIG['MOZ_OPTIMIZE']:
    86     DEFINES['MOZ_OPTIMIZE'] = True
    88 GENERATED_INCLUDES += ['..']
    89 LOCAL_INCLUDES += [
    90     '../base',
    91     '../components',
    92     '../ds',
    93     '../glue',
    94     '../io',
    95     '../reflect/xptinfo/src',
    96     '../threads',
    97     '/chrome/src',
    98     '/docshell/base',
    99 ]
   101 if CONFIG['MOZ_VPX']:
   102     LOCAL_INCLUDES += [
   103         '/media/libvpx',
   104     ]

mercurial