tor-browser

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

moz.build (4964B)


      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 SOURCES += [
     26     "/third_party/abseil-cpp/absl/strings/numbers.cc"
     27 ]
     28 
     29 UNIFIED_SOURCES += [
     30     "/third_party/abseil-cpp/absl/strings/ascii.cc",
     31     "/third_party/abseil-cpp/absl/strings/charconv.cc",
     32     "/third_party/abseil-cpp/absl/strings/escaping.cc",
     33     "/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.cc",
     34     "/third_party/abseil-cpp/absl/strings/internal/charconv_parse.cc",
     35     "/third_party/abseil-cpp/absl/strings/internal/damerau_levenshtein_distance.cc",
     36     "/third_party/abseil-cpp/absl/strings/internal/memutil.cc",
     37     "/third_party/abseil-cpp/absl/strings/internal/stringify_sink.cc",
     38     "/third_party/abseil-cpp/absl/strings/match.cc",
     39     "/third_party/abseil-cpp/absl/strings/str_cat.cc",
     40     "/third_party/abseil-cpp/absl/strings/str_replace.cc",
     41     "/third_party/abseil-cpp/absl/strings/str_split.cc",
     42     "/third_party/abseil-cpp/absl/strings/substitute.cc"
     43 ]
     44 
     45 if not CONFIG["MOZ_DEBUG"]:
     46 
     47     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
     48     DEFINES["NDEBUG"] = True
     49     DEFINES["NVALGRIND"] = True
     50 
     51 if CONFIG["MOZ_DEBUG"] == "1":
     52 
     53     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
     54 
     55 if CONFIG["OS_TARGET"] == "Android":
     56 
     57     DEFINES["ANDROID"] = True
     58     DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1"
     59     DEFINES["HAVE_SYS_UIO_H"] = True
     60     DEFINES["_GNU_SOURCE"] = True
     61     DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True
     62 
     63 if CONFIG["OS_TARGET"] == "Linux":
     64 
     65     DEFINES["USE_AURA"] = "1"
     66     DEFINES["USE_GLIB"] = "1"
     67     DEFINES["USE_OZONE"] = "1"
     68     DEFINES["USE_UDEV"] = True
     69     DEFINES["_FILE_OFFSET_BITS"] = "64"
     70     DEFINES["_LARGEFILE64_SOURCE"] = True
     71     DEFINES["_LARGEFILE_SOURCE"] = True
     72 
     73 if CONFIG["OS_TARGET"] == "OpenBSD":
     74 
     75     DEFINES["USE_GLIB"] = "1"
     76     DEFINES["USE_OZONE"] = "1"
     77     DEFINES["_FILE_OFFSET_BITS"] = "64"
     78     DEFINES["_LARGEFILE64_SOURCE"] = True
     79     DEFINES["_LARGEFILE_SOURCE"] = True
     80 
     81 if CONFIG["OS_TARGET"] == "WINNT":
     82 
     83     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
     84     DEFINES["NOMINMAX"] = True
     85     DEFINES["NTDDI_VERSION"] = "0x0A000000"
     86     DEFINES["PSAPI_VERSION"] = "2"
     87     DEFINES["UNICODE"] = True
     88     DEFINES["USE_AURA"] = "1"
     89     DEFINES["WIN32"] = True
     90     DEFINES["WIN32_LEAN_AND_MEAN"] = True
     91     DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
     92     DEFINES["WINVER"] = "0x0A00"
     93     DEFINES["_ATL_NO_OPENGL"] = True
     94     DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
     95     DEFINES["_CRT_RAND_S"] = True
     96     DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
     97     DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
     98     DEFINES["_HAS_EXCEPTIONS"] = "0"
     99     DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
    100     DEFINES["_SECURE_ATL"] = True
    101     DEFINES["_UNICODE"] = True
    102     DEFINES["_WIN32_WINNT"] = "0x0A00"
    103     DEFINES["_WINDOWS"] = True
    104     DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True
    105     DEFINES["__STD_C"] = True
    106 
    107 if CONFIG["TARGET_CPU"] == "aarch64":
    108 
    109     DEFINES["__ARM_NEON__"] = "1"
    110 
    111 if CONFIG["TARGET_CPU"] == "arm":
    112 
    113     CXXFLAGS += [
    114         "-mfpu=neon"
    115     ]
    116 
    117 if CONFIG["TARGET_CPU"] == "loongarch64":
    118 
    119     DEFINES["_GNU_SOURCE"] = True
    120 
    121 if CONFIG["TARGET_CPU"] == "mips32":
    122 
    123     DEFINES["_GNU_SOURCE"] = True
    124 
    125 if CONFIG["TARGET_CPU"] == "mips64":
    126 
    127     DEFINES["_GNU_SOURCE"] = True
    128 
    129 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
    130 
    131     DEFINES["_DEBUG"] = True
    132 
    133 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
    134 
    135     DEFINES["_DEBUG"] = True
    136 
    137 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
    138 
    139     DEFINES["_DEBUG"] = True
    140 
    141 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
    142 
    143     DEFINES["_DEBUG"] = True
    144 
    145 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
    146 
    147     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
    148 
    149 if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86":
    150 
    151     CXXFLAGS += [
    152         "-msse2"
    153     ]
    154 
    155 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
    156 
    157     DEFINES["_GNU_SOURCE"] = True
    158 
    159 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
    160 
    161     DEFINES["_GNU_SOURCE"] = True
    162 
    163 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
    164 
    165     CXXFLAGS += [
    166         "-msse2"
    167     ]
    168 
    169     DEFINES["_GNU_SOURCE"] = True
    170 
    171 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
    172 
    173     DEFINES["_GNU_SOURCE"] = True
    174 
    175 Library("strings_gn")