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

Side by Side Diff: third_party/openh264/openh264.gyp

Issue 1446453004: Adding third_party/openh264 build files for encoding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed torbjorng's comments Created 5 years, 1 month 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
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 {
6 'includes': [
7 'openh264_args.gypi',
8 ],
9 'conditions': [
10 ['use_openh264==1', {
11 # Settings shared by all openh264 targets.
12 'target_defaults': {
13 'variables': {
14 'chromium_code': 0,
15 'conditions': [
16 ['OS!="win"', {
17 # GCC flags
18 'openh264_cflags_add': [
19 '-Wno-macro-redefined', # due to VERSION_NUMBER workaround
20 '-Wno-unused-value',
21 ],
22 'openh264_cflags_remove': [
23 '-Wheader-hygiene',
24 ],
25 },{
26 # Windows uses 'msvs_disabled_warnings' instead, for MSVC flags.
27 'openh264_cflags_add': [],
28 'openh264_cflags_remove': [],
29 }],
30 ],
31 },
32 'cflags': [ '<@(openh264_cflags_add)' ],
33 'cflags!': [ '<@(openh264_cflags_remove)' ],
34 'xcode_settings': {
35 'WARNING_CFLAGS': [ '<@(openh264_cflags_add)' ],
36 'WARNING_CFLAGS!': [ '<@(openh264_cflags_remove)' ],
37 },
38 'msvs_disabled_warnings': [
39 4005, # macro redefinition - due to VERSION_NUMBER workaround
40 4324, # structure was padded
41 4245, # signed/unsigned mismatch
42 4701, # uninitialized variable used
43 4702, # unreachable code
44 ],
45
46 # Platform-specific defines.
47 'conditions': [
48 ['OS=="android"', {
49 'defines': [
50 'ANDROID_NDK',
51 ],
52 }],
53 ],
54
55 # Workaround relating to the VERSION_NUMBER macro in version.h.
56 # TODO(hbos): Fix cause of the issue instead of this workaround.
57 'defines': [
58 # On some builds VERSION_NUMBER is not defined when including
59 # version.h (probably another file is included named version.h, I have
60 # not been able to reproduce the problem on a local machine). Since
61 # the macro is only used for debug printing in wels[En/De]coderExt.cpp
62 # we can get around the undeclared identifier error by giving it a
63 # default value ourselves.
64 'VERSION_NUMBER="openh264 v.?.?"',
65 ],
66 },
67 'includes': [
68 'openh264.gypi',
69 ],
70 'targets': [
71 {
72 'target_name': 'openh264_common',
73 'type': 'static_library',
74 'conditions': [
75 ['OS=="android"', {
76 'dependencies': [
77 # Defines "android_get/setCpu..." functions. The original
78 # OpenH264 build files replaces these using macros for
79 # "wels_..." versions of the same functions. We do not have
80 # access to these and use the <cpu-features.h> ones instead.
81 '<(DEPTH)/build/android/ndk.gyp:cpu_features',
82 ],
83 }],
84 ],
85 'include_dirs': [
86 'src/codec/api/svc',
87 'src/codec/common/inc',
88 'src/codec/common/src',
89 ],
90 'sources': [
91 '<@(openh264_common_sources)',
92 ],
93 },
94 {
95 'target_name': 'openh264_processing',
96 'type': 'static_library',
97 'dependencies': [
98 'openh264_common',
99 ],
100 'include_dirs': [
101 'src/codec/api/svc',
102 'src/codec/common/inc',
103 'src/codec/common/src',
104 'src/codec/processing/interface',
105 'src/codec/processing/interface/',
106 'src/codec/processing/src/adaptivequantization',
107 'src/codec/processing/src/backgrounddetection',
108 'src/codec/processing/src/common',
109 'src/codec/processing/src/complexityanalysis',
110 'src/codec/processing/src/denoise',
111 'src/codec/processing/src/downsample',
112 'src/codec/processing/src/imagerotate',
113 'src/codec/processing/src/scenechangedetection',
114 'src/codec/processing/src/scrolldetection',
115 'src/codec/processing/src/vaacalc',
116 ],
117 'sources': [
118 '<@(openh264_processing_sources)',
119 ],
120 },
121 {
122 'target_name': 'openh264_encoder',
123 'type': 'static_library',
124 'dependencies': [
125 'openh264_common',
126 'openh264_processing',
127 ],
128 'include_dirs': [
129 'src/codec/api/svc',
130 'src/codec/common/inc',
131 'src/codec/common/src',
132 'src/codec/encoder/core/inc',
133 'src/codec/encoder/core/src',
134 'src/codec/encoder/plus/inc',
135 'src/codec/encoder/plus/src',
136 'src/codec/processing/interface/',
137 ],
138 'sources': [
139 '<@(openh264_encoder_sources)',
140 ],
141 },
142 {
143 'target_name': 'openh264_decoder',
144 'type': 'static_library',
145 'dependencies': [
146 'openh264_common',
147 'openh264_processing',
148 ],
149 'defines': [
150 # Disables decoder_core.cpp debug prints.
151 'CODEC_FOR_TESTBED',
152 ],
153 'include_dirs': [
154 'src/codec/api/svc',
155 'src/codec/common/inc',
156 'src/codec/common/src',
157 'src/codec/decoder/core/inc',
158 'src/codec/decoder/core/src',
159 'src/codec/decoder/plus/inc',
160 'src/codec/decoder/plus/src',
161 'src/codec/processing/interface/',
162 ],
163 'sources': [
164 '<@(openh264_decoder_sources)',
165 ],
166 },
167 ],
168 },{
169 # Building without OpenH264. Defining a dummy target because every build
170 # file needs to have at least one target.
171 'targets': [
172 {
173 'target_name': 'openh264_dummy_target',
174 'type': 'none',
175 }
176 ],
177 }],
178 ],
179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698