tor-browser

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

moz.build (4231B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 
      5 
      6   ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
      7   ### DO NOT edit it by hand.                                       ###
      8 
      9 COMPILE_FLAGS["OS_INCLUDES"] = []
     10 AllowCompilerWarnings()
     11 
     12 FINAL_LIBRARY = "xul"
     13 
     14 
     15 LOCAL_INCLUDES += [
     16     "!/ipc/ipdl/_ipdlheaders",
     17     "!/third_party/abseil-cpp/gen",
     18     "/ipc/chromium/src",
     19     "/third_party/abseil-cpp/",
     20     "/tools/profiler/public"
     21 ]
     22 
     23 if not CONFIG["MOZ_DEBUG"]:
     24 
     25     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
     26     DEFINES["NDEBUG"] = True
     27     DEFINES["NVALGRIND"] = True
     28 
     29 if CONFIG["MOZ_DEBUG"] == "1":
     30 
     31     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
     32 
     33 if CONFIG["OS_TARGET"] == "Android":
     34 
     35     DEFINES["ANDROID"] = True
     36     DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1"
     37     DEFINES["HAVE_SYS_UIO_H"] = True
     38     DEFINES["_GNU_SOURCE"] = True
     39     DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True
     40     DEFINES["__STDC_CONSTANT_MACROS"] = True
     41     DEFINES["__STDC_FORMAT_MACROS"] = True
     42 
     43     OS_LIBS += [
     44         "log"
     45     ]
     46 
     47 if CONFIG["OS_TARGET"] == "Darwin":
     48 
     49     DEFINES["__STDC_CONSTANT_MACROS"] = True
     50     DEFINES["__STDC_FORMAT_MACROS"] = True
     51 
     52 if CONFIG["OS_TARGET"] == "Linux":
     53 
     54     DEFINES["USE_AURA"] = "1"
     55     DEFINES["USE_GLIB"] = "1"
     56     DEFINES["USE_OZONE"] = "1"
     57     DEFINES["USE_UDEV"] = True
     58     DEFINES["_FILE_OFFSET_BITS"] = "64"
     59     DEFINES["_LARGEFILE64_SOURCE"] = True
     60     DEFINES["_LARGEFILE_SOURCE"] = True
     61     DEFINES["__STDC_CONSTANT_MACROS"] = True
     62     DEFINES["__STDC_FORMAT_MACROS"] = True
     63 
     64 if CONFIG["OS_TARGET"] == "OpenBSD":
     65 
     66     DEFINES["USE_GLIB"] = "1"
     67     DEFINES["USE_OZONE"] = "1"
     68     DEFINES["_FILE_OFFSET_BITS"] = "64"
     69     DEFINES["_LARGEFILE64_SOURCE"] = True
     70     DEFINES["_LARGEFILE_SOURCE"] = True
     71     DEFINES["__STDC_CONSTANT_MACROS"] = True
     72     DEFINES["__STDC_FORMAT_MACROS"] = True
     73 
     74 if CONFIG["OS_TARGET"] == "WINNT":
     75 
     76     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
     77     DEFINES["NOMINMAX"] = True
     78     DEFINES["NTDDI_VERSION"] = "0x0A000000"
     79     DEFINES["PSAPI_VERSION"] = "2"
     80     DEFINES["UNICODE"] = True
     81     DEFINES["USE_AURA"] = "1"
     82     DEFINES["WIN32"] = True
     83     DEFINES["WIN32_LEAN_AND_MEAN"] = True
     84     DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
     85     DEFINES["WINVER"] = "0x0A00"
     86     DEFINES["_ATL_NO_OPENGL"] = True
     87     DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
     88     DEFINES["_CRT_RAND_S"] = True
     89     DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
     90     DEFINES["_HAS_EXCEPTIONS"] = "0"
     91     DEFINES["_HAS_NODISCARD"] = True
     92     DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
     93     DEFINES["_SECURE_ATL"] = True
     94     DEFINES["_UNICODE"] = True
     95     DEFINES["_WIN32_WINNT"] = "0x0A00"
     96     DEFINES["_WINDOWS"] = True
     97     DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True
     98     DEFINES["__STD_C"] = True
     99 
    100     OS_LIBS += [
    101         "bcrypt"
    102     ]
    103 
    104 if CONFIG["TARGET_CPU"] == "aarch64":
    105 
    106     DEFINES["__ARM_NEON__"] = "1"
    107 
    108 if CONFIG["TARGET_CPU"] == "loongarch64":
    109 
    110     DEFINES["_GNU_SOURCE"] = True
    111 
    112 if CONFIG["TARGET_CPU"] == "mips32":
    113 
    114     DEFINES["_GNU_SOURCE"] = True
    115 
    116 if CONFIG["TARGET_CPU"] == "mips64":
    117 
    118     DEFINES["_GNU_SOURCE"] = True
    119 
    120 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
    121 
    122     DEFINES["_DEBUG"] = True
    123 
    124 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
    125 
    126     DEFINES["_DEBUG"] = True
    127 
    128 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
    129 
    130     DEFINES["_DEBUG"] = True
    131 
    132 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
    133 
    134     DEFINES["_DEBUG"] = True
    135 
    136 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
    137 
    138     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
    139 
    140 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
    141 
    142     DEFINES["_GNU_SOURCE"] = True
    143 
    144 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
    145 
    146     DEFINES["_GNU_SOURCE"] = True
    147 
    148 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
    149 
    150     DEFINES["_GNU_SOURCE"] = True
    151 
    152 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
    153 
    154     DEFINES["_GNU_SOURCE"] = True
    155 
    156 Library("absl_gn")