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

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

Issue 1734613003: Move libvpx_new to libvpx (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 months 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 | « third_party/libvpx/include/elf.h ('k') | third_party/libvpx/libvpx_nacl.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 { 4 {
5 'variables': { 5 'variables': {
6 'libvpx_build_vp9%': 1, 6 'libvpx_build_vp9%': 1,
7 'libvpx_source%': 'source/libvpx', 7 'libvpx_source%': 'source/libvpx',
8 # Disable LTO for neon targets 8 # Disable LTO for neon targets
9 # crbug.com/408997 9 # crbug.com/408997
10 'use_lto%': 0, 10 'use_lto%': 0,
(...skipping 27 matching lines...) Expand all
38 }], 38 }],
39 39
40 ['os_posix == 1 and OS != "mac"', { 40 ['os_posix == 1 and OS != "mac"', {
41 'OS_CATEGORY%': 'linux', 41 'OS_CATEGORY%': 'linux',
42 }, { 42 }, {
43 'OS_CATEGORY%': '<(OS)', 43 'OS_CATEGORY%': '<(OS)',
44 }], 44 }],
45 ], 45 ],
46 46
47 # Location of the intermediate output. 47 # Location of the intermediate output.
48 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx_new', 48 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx',
49 }, 49 },
50 'target_defaults': { 50 'target_defaults': {
51 'conditions': [ 51 'conditions': [
52 ['target_arch=="arm" and clang==1', { 52 ['target_arch=="arm" and clang==1', {
53 # TODO(hans) Enable integrated-as (crbug.com/124610). 53 # TODO(hans) Enable integrated-as (crbug.com/124610).
54 'cflags': [ '-fno-integrated-as' ], 54 'cflags': [ '-fno-integrated-as' ],
55 'conditions': [ 55 'conditions': [
56 ['OS == "android"', { 56 ['OS == "android"', {
57 # Else /usr/bin/as gets picked up. 57 # Else /usr/bin/as gets picked up.
58 'cflags': [ '-B<(android_toolchain)' ], 58 'cflags': [ '-B<(android_toolchain)' ],
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 # When building for targets which may not have NEON (but may!), include 96 # When building for targets which may not have NEON (but may!), include
97 # support for neon and hide it behind Android cpu-features. 97 # support for neon and hide it behind Android cpu-features.
98 'includes': ['libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi', ], 98 'includes': ['libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi', ],
99 }], 99 }],
100 [ '(target_arch != "arm" and target_arch != "armv7") and \ 100 [ '(target_arch != "arm" and target_arch != "armv7") and \
101 (target_arch != "mipsel" and target_arch != "mips64el")', { 101 (target_arch != "mipsel" and target_arch != "mips64el")', {
102 'targets': [ 102 'targets': [
103 { 103 {
104 # This libvpx target contains both encoder and decoder. 104 # This libvpx target contains both encoder and decoder.
105 # Encoder is configured to be realtime only. 105 # Encoder is configured to be realtime only.
106 'target_name': 'libvpx_new', 106 'target_name': 'libvpx',
107 'type': 'static_library', 107 'type': 'static_library',
108 'variables': { 108 'variables': {
109 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx_n ew', 109 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx',
110 'OS_CATEGORY%': '<(OS_CATEGORY)', 110 'OS_CATEGORY%': '<(OS_CATEGORY)',
111 'yasm_flags': [ 111 'yasm_flags': [
112 '-D', 'CHROMIUM', 112 '-D', 'CHROMIUM',
113 '-I', 'source/config/<(OS_CATEGORY)/<(target_arch_full)', 113 '-I', 'source/config/<(OS_CATEGORY)/<(target_arch_full)',
114 '-I', 'source/config', 114 '-I', 'source/config',
115 '-I', '<(libvpx_source)', 115 '-I', '<(libvpx_source)',
116 ], 116 ],
117 # yasm only gets the flags we define. It doesn't inherit any of the 117 # yasm only gets the flags we define. It doesn't inherit any of the
118 # really useful defines that come with a gcc invocation. In this 118 # really useful defines that come with a gcc invocation. In this
119 # case, we rely on __ANDROID__ to set 'rand' to 'lrand48'. 119 # case, we rely on __ANDROID__ to set 'rand' to 'lrand48'.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 }, 191 },
192 ], 192 ],
193 }, 193 },
194 ], 194 ],
195 # 'libvpx' target for mipsel and mips64el builds. 195 # 'libvpx' target for mipsel and mips64el builds.
196 [ 'target_arch=="mipsel" or target_arch=="mips64el"', { 196 [ 'target_arch=="mipsel" or target_arch=="mips64el"', {
197 'targets': [ 197 'targets': [
198 { 198 {
199 # This libvpx target contains both encoder and decoder. 199 # This libvpx target contains both encoder and decoder.
200 # Encoder is configured to be realtime only. 200 # Encoder is configured to be realtime only.
201 'target_name': 'libvpx_new', 201 'target_name': 'libvpx',
202 'type': 'static_library', 202 'type': 'static_library',
203 'variables': { 203 'variables': {
204 'shared_generated_dir': 204 'shared_generated_dir':
205 '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx_new', 205 '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx',
206 }, 206 },
207 'includes': [ 207 'includes': [
208 'libvpx_srcs_mips.gypi', 208 'libvpx_srcs_mips.gypi',
209 ], 209 ],
210 'include_dirs': [ 210 'include_dirs': [
211 'source/config/<(OS_CATEGORY)/<(target_arch_full)', 211 'source/config/<(OS_CATEGORY)/<(target_arch_full)',
212 'source/config', 212 'source/config',
213 '<(libvpx_source)', 213 '<(libvpx_source)',
214 '<(libvpx_source)/vp8/common', 214 '<(libvpx_source)/vp8/common',
215 '<(libvpx_source)/vp8/decoder', 215 '<(libvpx_source)/vp8/decoder',
(...skipping 10 matching lines...) Expand all
226 }, 226 },
227 ], 227 ],
228 }, 228 },
229 ], 229 ],
230 # 'libvpx' target for ARM builds. 230 # 'libvpx' target for ARM builds.
231 [ '(target_arch=="arm" or target_arch=="armv7") ', { 231 [ '(target_arch=="arm" or target_arch=="armv7") ', {
232 'targets': [ 232 'targets': [
233 { 233 {
234 # This libvpx target contains both encoder and decoder. 234 # This libvpx target contains both encoder and decoder.
235 # Encoder is configured to be realtime only. 235 # Encoder is configured to be realtime only.
236 'target_name': 'libvpx_new', 236 'target_name': 'libvpx',
237 'type': 'static_library', 237 'type': 'static_library',
238 238
239 'includes': [ 'ads2gas.gypi', ], 239 'includes': [ 'ads2gas.gypi', ],
240 240
241 'xcode_settings': { 241 'xcode_settings': {
242 'OTHER_CFLAGS': [ 242 'OTHER_CFLAGS': [
243 '-I<!(pwd)/source/config/<(OS_CATEGORY)/<(target_arch_full)', 243 '-I<!(pwd)/source/config/<(OS_CATEGORY)/<(target_arch_full)',
244 '-I<!(pwd)/source/config', 244 '-I<!(pwd)/source/config',
245 '-I<(shared_generated_dir)', 245 '-I<(shared_generated_dir)',
246 ], 246 ],
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 '-fstack-protector-all', # Implies -fstack-protector 291 '-fstack-protector-all', # Implies -fstack-protector
292 ], 292 ],
293 }, 293 },
294 }], 294 }],
295 ], 295 ],
296 }, 296 },
297 ], 297 ],
298 }], 298 }],
299 ], 299 ],
300 } 300 }
OLDNEW
« no previous file with comments | « third_party/libvpx/include/elf.h ('k') | third_party/libvpx/libvpx_nacl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698