1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/coreconf/source.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,162 @@ 1.4 +# 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +####################################################################### 1.10 +# Master <component>-specific source import/export directories # 1.11 +####################################################################### 1.12 + 1.13 +# 1.14 +# <user_source_tree> master import/export directory prefix 1.15 +# 1.16 + 1.17 +ifndef SOURCE_PREFIX 1.18 + ifndef BUILD_TREE 1.19 + SOURCE_PREFIX = $(CORE_DEPTH)/../dist 1.20 + else 1.21 + SOURCE_PREFIX = $(BUILD_TREE)/dist 1.22 + endif 1.23 +endif 1.24 + 1.25 +# 1.26 +# <user_source_tree> cross-platform (xp) master import/export directory 1.27 +# 1.28 + 1.29 +ifndef SOURCE_XP_DIR 1.30 + SOURCE_XP_DIR = $(SOURCE_PREFIX) 1.31 +endif 1.32 + 1.33 +# 1.34 +# <user_source_tree> cross-platform (xp) import/export directories 1.35 +# 1.36 + 1.37 +SOURCE_CLASSES_DIR = $(SOURCE_XP_DIR)/classes 1.38 +SOURCE_CLASSES_DBG_DIR = $(SOURCE_XP_DIR)/classes_DBG 1.39 +SOURCE_XPHEADERS_DIR = $(SOURCE_XP_DIR)/public/$(MODULE) 1.40 +SOURCE_XPPRIVATE_DIR = $(SOURCE_XP_DIR)/private/$(MODULE) 1.41 + 1.42 +ifdef BUILD_OPT 1.43 + IMPORT_XPCLASS_DIR = $(SOURCE_CLASSES_DIR) 1.44 +else 1.45 + IMPORT_XPCLASS_DIR = $(SOURCE_CLASSES_DBG_DIR) 1.46 +endif 1.47 + 1.48 +# 1.49 +# <user_source_tree> machine-dependent (md) master import/export directory 1.50 +# 1.51 + 1.52 +ifndef SOURCE_MD_DIR 1.53 + SOURCE_MD_DIR = $(SOURCE_PREFIX)/$(PLATFORM) 1.54 +endif 1.55 + 1.56 +# 1.57 +# <user_source_tree> machine-dependent (md) import/export directories 1.58 +# 1.59 + 1.60 +#This is where we install built executables and (for Windows only) DLLs. 1.61 +ifndef SOURCE_BIN_DIR 1.62 + SOURCE_BIN_DIR = $(SOURCE_MD_DIR)/bin 1.63 +endif 1.64 + 1.65 +#This is where we install built libraries (.a, .so, .lib). 1.66 +ifndef SOURCE_LIB_DIR 1.67 + SOURCE_LIB_DIR = $(SOURCE_MD_DIR)/lib 1.68 +endif 1.69 + 1.70 +# This is where NSPR header files are found. 1.71 +ifndef SOURCE_MDHEADERS_DIR 1.72 + SOURCE_MDHEADERS_DIR = $(SOURCE_MD_DIR)/include 1.73 +endif 1.74 + 1.75 +####################################################################### 1.76 +# Master <component>-specific source release directories and files # 1.77 +####################################################################### 1.78 + 1.79 +# 1.80 +# <user_source_tree> source-side master release directory prefix 1.81 +# NOTE: export control policy enforced for XP and MD files released to 1.82 +# the staging area 1.83 +# 1.84 + 1.85 +ifeq ($(POLICY), domestic) 1.86 + SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/domestic 1.87 +else 1.88 + ifeq ($(POLICY), export) 1.89 + SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/export 1.90 + else 1.91 + ifeq ($(POLICY), france) 1.92 + SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/france 1.93 + else 1.94 +#We shouldn't have to put another directory under here, but without it the perl 1.95 +#script for releasing doesn't find the directory. It thinks it doesn't exist. 1.96 +#So we're adding this no-policy directory so that the script for releasing works 1.97 +#in all casese when policy is not set. This doesn't affect where the final jar 1.98 +#files land, only where they are placed in the local tree when building the jar 1.99 +#files. When there is no policy, the jar files will still land in 1.100 +#<dist>/<module>/<date>/<platform> like they used to. 1.101 + SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/no-policy 1.102 + endif 1.103 + endif 1.104 +endif 1.105 + 1.106 +# 1.107 +# <user_source_tree> cross-platform (xp) source-side master release directory 1.108 +# 1.109 + 1.110 +SOURCE_RELEASE_XP_DIR = $(SOURCE_RELEASE_PREFIX) 1.111 + 1.112 +# 1.113 +# <user_source_tree> cross-platform (xp) source-side release directories 1.114 +# 1.115 + 1.116 +SOURCE_RELEASE_CLASSES_DIR = classes 1.117 +SOURCE_RELEASE_CLASSES_DBG_DIR = classes_DBG 1.118 +SOURCE_RELEASE_XPHEADERS_DIR = include 1.119 + 1.120 +# 1.121 +# <user_source_tree> cross-platform (xp) JAR source-side release files 1.122 +# 1.123 + 1.124 +XPCLASS_JAR = xpclass.jar 1.125 +XPCLASS_DBG_JAR = xpclass_dbg.jar 1.126 +XPHEADER_JAR = xpheader.jar 1.127 + 1.128 +ifdef BUILD_OPT 1.129 + SOURCE_RELEASE_XP_CLASSES_DIR = $(SOURCE_RELEASE_CLASSES_DIR) 1.130 + IMPORT_XPCLASS_JAR = $(XPCLASS_JAR) 1.131 +else 1.132 + SOURCE_RELEASE_XP_CLASSES_DIR = $(SOURCE_RELEASE_CLASSES_DBG_DIR) 1.133 + IMPORT_XPCLASS_JAR = $(XPCLASS_DBG_JAR) 1.134 +endif 1.135 + 1.136 +# 1.137 +# <user_source_tree> machine-dependent (md) source-side master release directory 1.138 +# 1.139 + 1.140 +SOURCE_RELEASE_MD_DIR = $(PLATFORM) 1.141 + 1.142 +# 1.143 +# <user_source_tree> machine-dependent (md) source-side release directories 1.144 +# 1.145 + 1.146 +SOURCE_RELEASE_BIN_DIR = $(PLATFORM)/bin 1.147 +SOURCE_RELEASE_LIB_DIR = $(PLATFORM)/lib 1.148 +SOURCE_RELEASE_MDHEADERS_DIR = $(PLATFORM)/include 1.149 +SOURCE_RELEASE_SPEC_DIR = $(SOURCE_RELEASE_MD_DIR) 1.150 + 1.151 +# 1.152 +# <user_source_tree> machine-dependent (md) JAR/tar source-side release files 1.153 +# 1.154 + 1.155 +MDBINARY_JAR = mdbinary.jar 1.156 +MDHEADER_JAR = mdheader.jar 1.157 + 1.158 + 1.159 +# Where to put the results 1.160 + 1.161 +ifneq ($(RESULTS_DIR),) 1.162 + RESULTS_DIR = $(RELEASE_TREE)/sectools/results 1.163 +endif 1.164 + 1.165 +MK_SOURCE = included