tor-browser

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

moz.build (4548B)


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