tor-browser

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

moz.build (4999B)


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