xpcom/glue/moz.build

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     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 DIRS += ['standalone', 'nomozalloc']
     9 # On win we build two glue libs - glue linked to crt dlls here and in staticruntime we build
    10 # a statically linked glue lib.
    11 if CONFIG['OS_ARCH'] == 'WINNT':
    12     DIRS += ['staticruntime']
    14 EXPORTS += [
    15     'MainThreadUtils.h',
    16     'nsArrayEnumerator.h',
    17     'nsArrayUtils.h',
    18     'nsBaseHashtable.h',
    19     'nsCategoryCache.h',
    20     'nsClassHashtable.h',
    21     'nsCOMArray.h',
    22     'nsComponentManagerUtils.h',
    23     'nsCOMPtr.h',
    24     'nsCRTGlue.h',
    25     'nsCycleCollectionNoteChild.h',
    26     'nsCycleCollectionNoteRootCallback.h',
    27     'nsCycleCollectionParticipant.h',
    28     'nsCycleCollectionTraversalCallback.h',
    29     'nsDataHashtable.h',
    30     'nsDebug.h',
    31     'nsDeque.h',
    32     'nsEnumeratorUtils.h',
    33     'nsHashKeys.h',
    34     'nsIClassInfoImpl.h',
    35     'nsID.h',
    36     'nsIInterfaceRequestorUtils.h',
    37     'nsINIParser.h',
    38     'nsInterfaceHashtable.h',
    39     'nsISupportsImpl.h',
    40     'nsISupportsUtils.h',
    41     'nsIWeakReferenceUtils.h',
    42     'nsJSThingHashtable.h',
    43     'nsMemory.h',
    44     'nsProxyRelease.h',
    45     'nsQuickSort.h',
    46     'nsRefPtrHashtable.h',
    47     'nsServiceManagerUtils.h',
    48     'nsStringAPI.h',
    49     'nsStringGlue.h',
    50     'nsTArray-inl.h',
    51     'nsTArray.h',
    52     'nsTArrayForwardDeclare.h',
    53     'nsTextFormatter.h',
    54     'nsTHashtable.h',
    55     'nsThreadUtils.h',
    56     'nsTObserverArray.h',
    57     'nsTPriorityQueue.h',
    58     'nsTWeakRef.h',
    59     'nsVersionComparator.h',
    60     'nsVoidArray.h',
    61     'nsWeakReference.h',
    62     'nsXPTCUtils.h',
    63     'pldhash.h',
    64 ]
    66 EXPORTS.mozilla += [
    67     'AppData.h',
    68     'AutoRestore.h',
    69     'BlockingResourceBase.h',
    70     'CondVar.h',
    71     'DeadlockDetector.h',
    72     'EnumeratedArrayCycleCollection.h',
    73     'FileUtils.h',
    74     'GenericFactory.h',
    75     'HoldDropJSObjects.h',
    76     'IntentionalCrash.h',
    77     'Monitor.h',
    78     'Mutex.h',
    79     'Observer.h',
    80     'ReentrantMonitor.h',
    81     'unused.h',
    82 ]
    84 EXPORTS.mozilla.threads += [
    85     'nsThreadIDs.h',
    86 ]
    88 include('objs.mozbuild')
    90 UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs
    91 UNIFIED_SOURCES += xpcom_glue_src_cppsrcs
    93 UNIFIED_SOURCES += [
    94     'GenericModule.cpp',
    95     'nsStringAPI.cpp',
    96 ]
    98 LIBRARY_NAME = 'xpcomglue_s'
   100 SDK_LIBRARY = [
   101     "%s%s.%s" % (CONFIG['LIB_PREFIX'], 'xpcomglue_s', CONFIG['LIB_SUFFIX']),
   102 ]
   104 FORCE_STATIC_LIB = True
   106 if CONFIG['_MSC_VER']:
   107     DEFINES['_USE_ANSI_CPP'] = True
   109 if CONFIG['TARGET_XPCOM_ABI']:
   110     DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
   112 LOCAL_INCLUDES += [
   113     '../build',
   114 ]
   116 if CONFIG['ENABLE_TESTS']:
   117     DIRS += ['tests/gtest']

mercurial