tor-browser

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

jsoncpp.gn (817B)


      1 import("//chromium/build/config/linux/pkg_config.gni")
      2 import("//chromium/build/shim_headers.gni")
      3 
      4 pkg_config("jsoncpp_config") {
      5   packages = [ "jsoncpp" ]
      6 
      7   # Defining JSON_DLL_BUILD applies public visibility to jsoncpp classes
      8   # thus deactivating CFI checks for them. This avoids CFI violations in
      9   # virtual calls to system jsoncpp library (https://crbug.com/1365218).
     10   defines = [ "JSON_DLL_BUILD" ]
     11 }
     12 
     13 shim_headers("jsoncpp_shim") {
     14   root_path = "source/include"
     15   headers = [
     16     "json/allocator.h",
     17     "json/assertions.h",
     18     "json/config.h",
     19     "json/forwards.h",
     20     "json/json.h",
     21     "json/json_features.h",
     22     "json/reader.h",
     23     "json/value.h",
     24     "json/version.h",
     25     "json/writer.h",
     26   ]
     27 }
     28 
     29 source_set("jsoncpp") {
     30   deps = [ ":jsoncpp_shim" ]
     31   public_configs = [ ":jsoncpp_config" ]
     32 }