tor-browser

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

moz.build (3860B)


      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 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
     13 
     14 FINAL_LIBRARY = "xul"
     15 
     16 
     17 LOCAL_INCLUDES += [
     18     "!/ipc/ipdl/_ipdlheaders",
     19     "!/third_party/abseil-cpp/gen",
     20     "/ipc/chromium/src",
     21     "/third_party/abseil-cpp/",
     22     "/tools/profiler/public"
     23 ]
     24 
     25 if not CONFIG["MOZ_DEBUG"]:
     26 
     27     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
     28     DEFINES["NDEBUG"] = True
     29     DEFINES["NVALGRIND"] = True
     30 
     31 if CONFIG["MOZ_DEBUG"] == "1":
     32 
     33     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
     34 
     35 if CONFIG["OS_TARGET"] == "Android":
     36 
     37     DEFINES["ANDROID"] = True
     38     DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1"
     39     DEFINES["HAVE_SYS_UIO_H"] = True
     40     DEFINES["_GNU_SOURCE"] = True
     41     DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True
     42 
     43     OS_LIBS += [
     44         "log"
     45     ]
     46 
     47 if CONFIG["OS_TARGET"] == "Linux":
     48 
     49     DEFINES["USE_AURA"] = "1"
     50     DEFINES["USE_GLIB"] = "1"
     51     DEFINES["USE_OZONE"] = "1"
     52     DEFINES["USE_UDEV"] = True
     53     DEFINES["_FILE_OFFSET_BITS"] = "64"
     54     DEFINES["_LARGEFILE64_SOURCE"] = True
     55     DEFINES["_LARGEFILE_SOURCE"] = True
     56 
     57 if CONFIG["OS_TARGET"] == "OpenBSD":
     58 
     59     DEFINES["USE_GLIB"] = "1"
     60     DEFINES["USE_OZONE"] = "1"
     61     DEFINES["_FILE_OFFSET_BITS"] = "64"
     62     DEFINES["_LARGEFILE64_SOURCE"] = True
     63     DEFINES["_LARGEFILE_SOURCE"] = True
     64 
     65 if CONFIG["OS_TARGET"] == "WINNT":
     66 
     67     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
     68     DEFINES["NOMINMAX"] = True
     69     DEFINES["NTDDI_VERSION"] = "0x0A000000"
     70     DEFINES["PSAPI_VERSION"] = "2"
     71     DEFINES["UNICODE"] = True
     72     DEFINES["USE_AURA"] = "1"
     73     DEFINES["WIN32"] = True
     74     DEFINES["WIN32_LEAN_AND_MEAN"] = True
     75     DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
     76     DEFINES["WINVER"] = "0x0A00"
     77     DEFINES["_ATL_NO_OPENGL"] = True
     78     DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
     79     DEFINES["_CRT_RAND_S"] = True
     80     DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
     81     DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
     82     DEFINES["_HAS_EXCEPTIONS"] = "0"
     83     DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
     84     DEFINES["_SECURE_ATL"] = True
     85     DEFINES["_UNICODE"] = True
     86     DEFINES["_WIN32_WINNT"] = "0x0A00"
     87     DEFINES["_WINDOWS"] = True
     88     DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True
     89     DEFINES["__STD_C"] = True
     90 
     91 if CONFIG["TARGET_CPU"] == "aarch64":
     92 
     93     DEFINES["__ARM_NEON__"] = "1"
     94 
     95 if CONFIG["TARGET_CPU"] == "loongarch64":
     96 
     97     DEFINES["_GNU_SOURCE"] = True
     98 
     99 if CONFIG["TARGET_CPU"] == "mips32":
    100 
    101     DEFINES["_GNU_SOURCE"] = True
    102 
    103 if CONFIG["TARGET_CPU"] == "mips64":
    104 
    105     DEFINES["_GNU_SOURCE"] = True
    106 
    107 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
    108 
    109     DEFINES["_DEBUG"] = True
    110 
    111 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
    112 
    113     DEFINES["_DEBUG"] = True
    114 
    115 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
    116 
    117     DEFINES["_DEBUG"] = True
    118 
    119 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
    120 
    121     DEFINES["_DEBUG"] = True
    122 
    123 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
    124 
    125     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
    126 
    127 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
    128 
    129     DEFINES["_GNU_SOURCE"] = True
    130 
    131 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
    132 
    133     DEFINES["_GNU_SOURCE"] = True
    134 
    135 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
    136 
    137     DEFINES["_GNU_SOURCE"] = True
    138 
    139 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
    140 
    141     DEFINES["_GNU_SOURCE"] = True
    142 
    143 Library("strip_gn")