tor-browser

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

BUILD.gn (2212B)


      1 # Copyright 2013 The Chromium Authors
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 import("//chromium/build/config/c++/c++.gni")
      6 import("//chromium/build/config/chromeos/ui_mode.gni")
      7 import("//chromium/build/config/linux/pkg_config.gni")
      8 import("//chromium/build/config/ui.gni")
      9 
     10 group("linux") {
     11   visibility = [ "//:optimize_gn_gen" ]
     12 }
     13 
     14 # This is included by reference in the //build/config/compiler config that
     15 # is applied to all targets. It is here to separate out the logic that is
     16 # Linux-only. This is not applied to Android, but is applied to ChromeOS.
     17 config("compiler") {
     18   if (target_cpu == "arm64") {
     19     import("//chromium/build/config/arm.gni")
     20     cflags = []
     21     asmflags = []
     22     if (arm_control_flow_integrity == "standard") {
     23       cflags += [ "-mbranch-protection=standard" ]
     24       asmflags += [ "-mbranch-protection=standard" ]
     25     } else if (arm_control_flow_integrity == "pac") {
     26       cflags += [ "-mbranch-protection=pac-ret" ]
     27       asmflags += [ "-mbranch-protection=pac-ret" ]
     28     }
     29   }
     30 }
     31 
     32 # This is included by reference in the //build/config/compiler:runtime_library
     33 # config that is applied to all targets. It is here to separate out the logic
     34 # that is Linux-only. Please see that target for advice on what should go in
     35 # :runtime_library vs. :compiler.
     36 config("runtime_library") {
     37   # Set here because OS_CHROMEOS cannot be autodetected in build_config.h like
     38   # OS_LINUX and the like.
     39   if (is_chromeos) {
     40     defines = [ "OS_CHROMEOS" ]
     41   }
     42 
     43   # Mozilla disable libatomic on linux builds
     44   if (false) {
     45   if ((!is_chromeos || default_toolchain != "//chromium/build/toolchain/cros:target") &&
     46       (!use_custom_libcxx || target_cpu == "mipsel")) {
     47     libs = [ "atomic" ]
     48   }
     49   }
     50 }
     51 
     52 config("libcap") {
     53   libs = [ "cap" ]
     54 }
     55 
     56 config("libresolv") {
     57   libs = [ "resolv" ]
     58 }
     59 
     60 # Mozilla disable glib - Bug 1654112 (hg sha 127ace4d8887)
     61 if (false && use_glib) {
     62   pkg_config("glib") {
     63     packages = [
     64       "glib-2.0",
     65       "gmodule-2.0",
     66       "gobject-2.0",
     67       "gthread-2.0",
     68     ]
     69     defines = [
     70       "GLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56",
     71       "GLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56",
     72     ]
     73   }
     74 }