security/nss/coreconf/source.mk

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.

michael@0 1 #
michael@0 2 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5
michael@0 6 #######################################################################
michael@0 7 # Master <component>-specific source import/export directories #
michael@0 8 #######################################################################
michael@0 9
michael@0 10 #
michael@0 11 # <user_source_tree> master import/export directory prefix
michael@0 12 #
michael@0 13
michael@0 14 ifndef SOURCE_PREFIX
michael@0 15 ifndef BUILD_TREE
michael@0 16 SOURCE_PREFIX = $(CORE_DEPTH)/../dist
michael@0 17 else
michael@0 18 SOURCE_PREFIX = $(BUILD_TREE)/dist
michael@0 19 endif
michael@0 20 endif
michael@0 21
michael@0 22 #
michael@0 23 # <user_source_tree> cross-platform (xp) master import/export directory
michael@0 24 #
michael@0 25
michael@0 26 ifndef SOURCE_XP_DIR
michael@0 27 SOURCE_XP_DIR = $(SOURCE_PREFIX)
michael@0 28 endif
michael@0 29
michael@0 30 #
michael@0 31 # <user_source_tree> cross-platform (xp) import/export directories
michael@0 32 #
michael@0 33
michael@0 34 SOURCE_CLASSES_DIR = $(SOURCE_XP_DIR)/classes
michael@0 35 SOURCE_CLASSES_DBG_DIR = $(SOURCE_XP_DIR)/classes_DBG
michael@0 36 SOURCE_XPHEADERS_DIR = $(SOURCE_XP_DIR)/public/$(MODULE)
michael@0 37 SOURCE_XPPRIVATE_DIR = $(SOURCE_XP_DIR)/private/$(MODULE)
michael@0 38
michael@0 39 ifdef BUILD_OPT
michael@0 40 IMPORT_XPCLASS_DIR = $(SOURCE_CLASSES_DIR)
michael@0 41 else
michael@0 42 IMPORT_XPCLASS_DIR = $(SOURCE_CLASSES_DBG_DIR)
michael@0 43 endif
michael@0 44
michael@0 45 #
michael@0 46 # <user_source_tree> machine-dependent (md) master import/export directory
michael@0 47 #
michael@0 48
michael@0 49 ifndef SOURCE_MD_DIR
michael@0 50 SOURCE_MD_DIR = $(SOURCE_PREFIX)/$(PLATFORM)
michael@0 51 endif
michael@0 52
michael@0 53 #
michael@0 54 # <user_source_tree> machine-dependent (md) import/export directories
michael@0 55 #
michael@0 56
michael@0 57 #This is where we install built executables and (for Windows only) DLLs.
michael@0 58 ifndef SOURCE_BIN_DIR
michael@0 59 SOURCE_BIN_DIR = $(SOURCE_MD_DIR)/bin
michael@0 60 endif
michael@0 61
michael@0 62 #This is where we install built libraries (.a, .so, .lib).
michael@0 63 ifndef SOURCE_LIB_DIR
michael@0 64 SOURCE_LIB_DIR = $(SOURCE_MD_DIR)/lib
michael@0 65 endif
michael@0 66
michael@0 67 # This is where NSPR header files are found.
michael@0 68 ifndef SOURCE_MDHEADERS_DIR
michael@0 69 SOURCE_MDHEADERS_DIR = $(SOURCE_MD_DIR)/include
michael@0 70 endif
michael@0 71
michael@0 72 #######################################################################
michael@0 73 # Master <component>-specific source release directories and files #
michael@0 74 #######################################################################
michael@0 75
michael@0 76 #
michael@0 77 # <user_source_tree> source-side master release directory prefix
michael@0 78 # NOTE: export control policy enforced for XP and MD files released to
michael@0 79 # the staging area
michael@0 80 #
michael@0 81
michael@0 82 ifeq ($(POLICY), domestic)
michael@0 83 SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/domestic
michael@0 84 else
michael@0 85 ifeq ($(POLICY), export)
michael@0 86 SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/export
michael@0 87 else
michael@0 88 ifeq ($(POLICY), france)
michael@0 89 SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/france
michael@0 90 else
michael@0 91 #We shouldn't have to put another directory under here, but without it the perl
michael@0 92 #script for releasing doesn't find the directory. It thinks it doesn't exist.
michael@0 93 #So we're adding this no-policy directory so that the script for releasing works
michael@0 94 #in all casese when policy is not set. This doesn't affect where the final jar
michael@0 95 #files land, only where they are placed in the local tree when building the jar
michael@0 96 #files. When there is no policy, the jar files will still land in
michael@0 97 #<dist>/<module>/<date>/<platform> like they used to.
michael@0 98 SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/no-policy
michael@0 99 endif
michael@0 100 endif
michael@0 101 endif
michael@0 102
michael@0 103 #
michael@0 104 # <user_source_tree> cross-platform (xp) source-side master release directory
michael@0 105 #
michael@0 106
michael@0 107 SOURCE_RELEASE_XP_DIR = $(SOURCE_RELEASE_PREFIX)
michael@0 108
michael@0 109 #
michael@0 110 # <user_source_tree> cross-platform (xp) source-side release directories
michael@0 111 #
michael@0 112
michael@0 113 SOURCE_RELEASE_CLASSES_DIR = classes
michael@0 114 SOURCE_RELEASE_CLASSES_DBG_DIR = classes_DBG
michael@0 115 SOURCE_RELEASE_XPHEADERS_DIR = include
michael@0 116
michael@0 117 #
michael@0 118 # <user_source_tree> cross-platform (xp) JAR source-side release files
michael@0 119 #
michael@0 120
michael@0 121 XPCLASS_JAR = xpclass.jar
michael@0 122 XPCLASS_DBG_JAR = xpclass_dbg.jar
michael@0 123 XPHEADER_JAR = xpheader.jar
michael@0 124
michael@0 125 ifdef BUILD_OPT
michael@0 126 SOURCE_RELEASE_XP_CLASSES_DIR = $(SOURCE_RELEASE_CLASSES_DIR)
michael@0 127 IMPORT_XPCLASS_JAR = $(XPCLASS_JAR)
michael@0 128 else
michael@0 129 SOURCE_RELEASE_XP_CLASSES_DIR = $(SOURCE_RELEASE_CLASSES_DBG_DIR)
michael@0 130 IMPORT_XPCLASS_JAR = $(XPCLASS_DBG_JAR)
michael@0 131 endif
michael@0 132
michael@0 133 #
michael@0 134 # <user_source_tree> machine-dependent (md) source-side master release directory
michael@0 135 #
michael@0 136
michael@0 137 SOURCE_RELEASE_MD_DIR = $(PLATFORM)
michael@0 138
michael@0 139 #
michael@0 140 # <user_source_tree> machine-dependent (md) source-side release directories
michael@0 141 #
michael@0 142
michael@0 143 SOURCE_RELEASE_BIN_DIR = $(PLATFORM)/bin
michael@0 144 SOURCE_RELEASE_LIB_DIR = $(PLATFORM)/lib
michael@0 145 SOURCE_RELEASE_MDHEADERS_DIR = $(PLATFORM)/include
michael@0 146 SOURCE_RELEASE_SPEC_DIR = $(SOURCE_RELEASE_MD_DIR)
michael@0 147
michael@0 148 #
michael@0 149 # <user_source_tree> machine-dependent (md) JAR/tar source-side release files
michael@0 150 #
michael@0 151
michael@0 152 MDBINARY_JAR = mdbinary.jar
michael@0 153 MDHEADER_JAR = mdheader.jar
michael@0 154
michael@0 155
michael@0 156 # Where to put the results
michael@0 157
michael@0 158 ifneq ($(RESULTS_DIR),)
michael@0 159 RESULTS_DIR = $(RELEASE_TREE)/sectools/results
michael@0 160 endif
michael@0 161
michael@0 162 MK_SOURCE = included

mercurial