tor-browser

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

openh264.gn (1218B)


      1 # Copyright 2017 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/linux/pkg_config.gni")
      6 import("//chromium/build/shim_headers.gni")
      7 
      8 config("encoder_cfi_flags") {
      9   cflags = []
     10   if (current_toolchain == default_toolchain && is_clang) {
     11     openh264_cfi_ignorelist_path =
     12         rebase_path("//chromium/build/linux/unbundle/openh264_encoder_cfi_ignores.txt",
     13                     root_build_dir)
     14     cflags += [ "-fsanitize-ignorelist=$openh264_cfi_ignorelist_path" ]
     15   }
     16 }
     17 
     18 pkg_config("config") {
     19   packages = [ "openh264" ]
     20 }
     21 
     22 shim_headers("openh264_shim") {
     23   prefix = "wels/"
     24   root_path = "src/codec/api/wels"
     25   headers = [
     26     "codec_api.h",
     27     "codec_app_def.h",
     28     "codec_def.h",
     29     "codec_ver.h",
     30   ]
     31 }
     32 
     33 source_set("common") {
     34   deps = [ ":openh264_shim" ]
     35   public_configs = [ ":config" ]
     36 }
     37 
     38 source_set("processing") {
     39   deps = [ ":openh264_shim" ]
     40   public_configs = [ ":config" ]
     41 }
     42 
     43 source_set("decoder") {
     44   deps = [ ":openh264_shim" ]
     45   public_configs = [ ":config" ]
     46 }
     47 
     48 source_set("encoder") {
     49   deps = [ ":openh264_shim" ]
     50   public_configs = [
     51     ":config",
     52     ":encoder_cfi_flags",
     53   ]
     54 }