tor-browser

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

BUILD.gn (1042B)


      1 # Copyright 2016 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/chromeos/ui_mode.gni")
      6 import("//chromium/build/config/features.gni")
      7 import("//chromium/build/config/linux/pkg_config.gni")
      8 import("//chromium/build/config/ui.gni")
      9 
     10 # CrOS doesn't install GTK or any gnome packages.
     11 assert(!is_chromeos)
     12 
     13 # These packages should _only_ be expected when building for a target.
     14 assert(current_toolchain == default_toolchain)
     15 
     16 if (use_atk) {
     17   assert(use_glib, "use_atk=true requires that use_glib=true")
     18 }
     19 
     20 pkg_config("atk") {
     21   packages = [
     22     "atk",
     23     "atk-bridge-2.0",
     24   ]
     25   atk_lib_dir = exec_script(pkg_config_script,
     26                             common_pkg_config_args + pkg_config_args + [
     27                                   "--libdir",
     28                                   "atk",
     29                                 ],
     30                             "string")
     31   defines = [
     32     "ATK_LIB_DIR=\"$atk_lib_dir\"",
     33     "USE_ATK_BRIDGE",
     34   ]
     35 }