tor-browser

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

ffmpeg.gn (812B)


      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/buildflag_header.gni")
      6 import("//chromium/build/config/linux/pkg_config.gni")
      7 import("//chromium/build/shim_headers.gni")
      8 
      9 pkg_config("system_ffmpeg") {
     10   packages = [
     11     "libavcodec",
     12     "libavformat",
     13     "libavutil",
     14   ]
     15 }
     16 
     17 buildflag_header("ffmpeg_features") {
     18   header = "ffmpeg_features.h"
     19   flags = [ "USE_SYSTEM_FFMPEG=true" ]
     20 }
     21 
     22 shim_headers("ffmpeg_shim") {
     23   root_path = "."
     24   headers = [
     25     "libavcodec/avcodec.h",
     26     "libavcodec/packet.h",
     27     "libavformat/avformat.h",
     28     "libavutil/imgutils.h",
     29   ]
     30 }
     31 
     32 source_set("ffmpeg") {
     33   deps = [
     34     ":ffmpeg_features",
     35     ":ffmpeg_shim",
     36   ]
     37   public_configs = [ ":system_ffmpeg" ]
     38 }