security/nss/coreconf/source.mk

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial