tor-browser

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

re2.gn (836B)


      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/c++/c++.gni")
      6 import("//chromium/build/config/linux/pkg_config.gni")
      7 import("//chromium/build/shim_headers.gni")
      8 
      9 assert(!use_custom_libcxx,
     10        "Usage of the system libre2.so is not supported with " +
     11            "use_custom_libcxx=true because the library's interface relies on " +
     12            "libstdc++'s std::string and std::vector.")
     13 
     14 pkg_config("re2_config") {
     15   packages = [ "re2" ]
     16 }
     17 
     18 shim_headers("re2_shim") {
     19   root_path = "src"
     20   headers = [
     21     "re2/filtered_re2.h",
     22     "re2/re2.h",
     23     "re2/set.h",
     24     "re2/stringpiece.h",
     25     "re2/variadic_function.h",
     26   ]
     27 }
     28 
     29 source_set("re2") {
     30   deps = [ ":re2_shim" ]
     31   public_configs = [ ":re2_config" ]
     32 }