tor-browser

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

moz.build (4184B)


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