tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

source.mk (3688B)


      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/.
      5 
      6 #######################################################################
      7 # Master <component>-specific source import/export directories        #
      8 #######################################################################
      9 
     10 #
     11 # <user_source_tree> master import/export directory prefix
     12 #
     13 
     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
     21 
     22 #
     23 # <user_source_tree> cross-platform (xp) master import/export directory
     24 #
     25 
     26 ifndef SOURCE_XP_DIR
     27    SOURCE_XP_DIR        = $(SOURCE_PREFIX)
     28 endif
     29 
     30 #
     31 # <user_source_tree> cross-platform (xp) import/export directories
     32 #
     33 
     34 SOURCE_XPHEADERS_DIR   = $(SOURCE_XP_DIR)/public/$(MODULE)
     35 SOURCE_XPPRIVATE_DIR   = $(SOURCE_XP_DIR)/private/$(MODULE)
     36 
     37 #
     38 # <user_source_tree> machine-dependent (md) master import/export directory
     39 #
     40 
     41 ifndef SOURCE_MD_DIR
     42    SOURCE_MD_DIR        = $(SOURCE_PREFIX)/$(PLATFORM)
     43 endif
     44 
     45 #
     46 # <user_source_tree> machine-dependent (md) import/export directories
     47 #
     48 
     49 #This is where we install built executables and (for Windows only) DLLs.
     50 ifndef SOURCE_BIN_DIR
     51    SOURCE_BIN_DIR       = $(SOURCE_MD_DIR)/bin
     52 endif
     53 
     54 #This is where we install built libraries (.a, .so, .lib).
     55 ifndef SOURCE_LIB_DIR
     56    SOURCE_LIB_DIR       = $(SOURCE_MD_DIR)/lib
     57 endif
     58 
     59 # This is where NSPR header files are found.
     60 ifndef SOURCE_MDHEADERS_DIR
     61    SOURCE_MDHEADERS_DIR = $(SOURCE_MD_DIR)/include
     62 endif
     63 
     64 #######################################################################
     65 # Master <component>-specific source release directories and files    #
     66 #######################################################################
     67 
     68 #
     69 # <user_source_tree> source-side master release directory prefix
     70 # NOTE:  export control policy enforced for XP and MD files released to
     71 #        the staging area
     72 #
     73 
     74 ifeq ($(POLICY), domestic)
     75    SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/domestic
     76 else
     77    ifeq ($(POLICY), export)
     78 SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/export
     79    else
     80 ifeq ($(POLICY), france)
     81     SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/france
     82 else
     83 #We shouldn't have to put another directory under here, but without it the perl
     84 #script for releasing doesn't find the directory. It thinks it doesn't exist.
     85 #So we're adding this no-policy directory so that the script for releasing works
     86 #in all casese when policy is not set. This doesn't affect where the final jar
     87 #files land, only where they are placed in the local tree when building the jar
     88 #files. When there is no policy, the jar files will still land in
     89 #<dist>/<module>/<date>/<platform> like they used to.
     90     SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/no-policy
     91 endif
     92    endif
     93 endif
     94 
     95 #
     96 # <user_source_tree> cross-platform (xp) source-side master release directory
     97 #
     98 
     99 SOURCE_RELEASE_XP_DIR = $(SOURCE_RELEASE_PREFIX)
    100 
    101 #
    102 # <user_source_tree> cross-platform (xp) source-side release directories
    103 #
    104 
    105 SOURCE_RELEASE_XPHEADERS_DIR   = include
    106 
    107 #
    108 # <user_source_tree> machine-dependent (md) source-side master release directory
    109 #
    110 
    111 SOURCE_RELEASE_MD_DIR = $(PLATFORM)
    112 
    113 #
    114 # <user_source_tree> machine-dependent (md) source-side release directories
    115 #
    116 
    117 SOURCE_RELEASE_BIN_DIR       = $(PLATFORM)/bin
    118 SOURCE_RELEASE_LIB_DIR       = $(PLATFORM)/lib
    119 SOURCE_RELEASE_MDHEADERS_DIR = $(PLATFORM)/include
    120 SOURCE_RELEASE_SPEC_DIR      = $(SOURCE_RELEASE_MD_DIR)
    121 
    122 # Where to put the results
    123 
    124 ifneq ($(RESULTS_DIR),)
    125    RESULTS_DIR = $(RELEASE_TREE)/sectools/results
    126 endif
    127 
    128 MK_SOURCE = included