tor-browser

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

brotli.gn (718B)


      1 import("//chromium/build/config/linux/pkg_config.gni")
      2 import("//chromium/build/shim_headers.gni")
      3 
      4 pkg_config("system_brotli_dec") {
      5   packages = [ "libbrotlidec" ]
      6 }
      7 
      8 pkg_config("system_brotli_enc") {
      9   packages = [ "libbrotlienc" ]
     10 }
     11 
     12 shim_headers("brotli_shim") {
     13   root_path = "include"
     14   headers = [
     15     "brotli/decode.h",
     16     "brotli/encode.h",
     17     "brotli/port.h",
     18     "brotli/shared_dictionary.h",
     19     "brotli/types.h",
     20   ]
     21 }
     22 
     23 source_set("dec") {
     24   deps = [ ":brotli_shim" ]
     25   public_configs = [ ":system_brotli_dec" ]
     26 }
     27 
     28 source_set("enc") {
     29   deps = [ ":brotli_shim" ]
     30   public_configs = [ ":system_brotli_enc" ]
     31 }
     32 
     33 copy("brotli") {
     34   sources = [ "/usr/bin/brotli" ]
     35   outputs = [ "$root_out_dir/brotli" ]
     36 }