Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: third_party/openh264/BUILD.gn

Issue 1446453004: Adding third_party/openh264 build files for encoding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase /w master and corrected comment about build flag Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/gn_migration.gypi ('k') | third_party/openh264/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
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("//third_party/openh264/openh264_args.gni")
6
7 assert(use_openh264)
8
9 # Import source and include variables from openh264.gypi.
10 openh264_gypi_values = exec_script("//build/gypi_to_gn.py",
11 [ rebase_path("openh264.gypi") ],
12 "scope")
13
14 # Config shared by all openh264 targets.
15 config("config") {
16 cflags = []
17 defines = []
18
19 # Compiler warnings to ignore.
20 if (!is_win) {
21 # GCC flags
22 cflags += [
23 "-Wno-header-hygiene",
24 "-Wno-unused-value",
25 ]
26 }
27
28 # Platform-specific defines.
29 if (is_android) {
30 # Android NDK is necessary for its cpufeatures and this define is what
31 # OpenH264 code uses to check if it should be used.
32 defines += [ "ANDROID_NDK" ]
33 }
34 }
35
36 source_set("common") {
37 sources = openh264_gypi_values.openh264_common_sources
38 include_dirs = openh264_gypi_values.openh264_common_includes
39 configs -= [ "//build/config/compiler:chromium_code" ]
40 configs += [ "//build/config/compiler:no_chromium_code" ]
41 configs += [ ":config" ]
42 deps = []
43 if (is_android) {
44 deps += [
45 # Defines "android_get/setCpu..." functions. The original OpenH264 build
46 # files replaces these using macros for "wels_..." versions of the same
47 # functions. We do not have access to these and use the <cpu-features.h>
48 # ones instead.
49 "//third_party/android_tools:cpu_features",
50 ]
51 }
52 }
53
54 source_set("processing") {
55 sources = openh264_gypi_values.openh264_processing_sources
56 include_dirs = openh264_gypi_values.openh264_processing_includes
57 configs -= [ "//build/config/compiler:chromium_code" ]
58 configs += [ "//build/config/compiler:no_chromium_code" ]
59 configs += [ ":config" ]
60 deps = [
61 ":common",
62 ]
63 }
64
65 source_set("encoder") {
66 sources = openh264_gypi_values.openh264_encoder_sources
67 include_dirs = openh264_gypi_values.openh264_encoder_includes
68 configs -= [ "//build/config/compiler:chromium_code" ]
69 configs += [ "//build/config/compiler:no_chromium_code" ]
70 configs += [ ":config" ]
71 deps = [
72 ":common",
73 ":processing",
74 ]
75 }
OLDNEW
« no previous file with comments | « build/gn_migration.gypi ('k') | third_party/openh264/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698