tor-browser

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

flatbuffers.gn (741B)


      1 import("//chromium/build/shim_headers.gni")
      2 
      3 config("flatbuffers_config") {
      4   include_dirs = [ "src/include" ]
      5 
      6   # Required to prevent static initialization of locale
      7   # in util.cpp
      8   defines = [ "FLATBUFFERS_LOCALE_INDEPENDENT=0" ]
      9 }
     10 
     11 shim_headers("flatbuffers_shim") {
     12   root_path = "src/include"
     13   headers = [
     14     "flatbuffers/base.h",
     15     "flatbuffers/flatbuffers.h",
     16     "flatbuffers/stl_emulation.h",
     17     "flatbuffers/flexbuffers.h",
     18     "flatbuffers/util.h",
     19   ]
     20 }
     21 
     22 source_set("flatbuffers") {
     23   deps = [ ":flatbuffers_shim" ]
     24   libs = [ "flatbuffers" ]
     25   public_configs = [ ":flatbuffers_config" ]
     26 }
     27 
     28 copy("flatc") {
     29   sources = [ "/usr/bin/flatc" ]
     30   outputs = [ "$root_out_dir/flatc" ]
     31 }
     32 
     33 source_set("flatbuffers_unittests") {
     34 }