OLD | NEW |
---|---|
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'conditions': [ | 6 'conditions': [ |
7 ['os_posix==1', { | 7 ['os_posix==1', { |
8 'asm_obj_extension': 'o', | 8 'asm_obj_extension': 'o', |
9 }], | 9 }], |
10 ['OS=="win"', { | 10 ['OS=="win"', { |
11 'asm_obj_extension': 'obj', | 11 'asm_obj_extension': 'obj', |
12 }], | 12 }], |
13 ], | 13 ], |
14 }, | 14 }, |
15 'conditions': [ | 15 'conditions': [ |
16 [ '(OS=="linux" or OS=="mac" or OS=="win") and target_arch!="arm"', { | 16 [ 'OS != "android" and target_arch != "arm"', { |
17 'targets': [ | 17 'targets': [ |
18 { | 18 { |
19 # This libvpx target contains both encoder and decoder. | 19 # This libvpx target contains both encoder and decoder. |
20 # Encoder is configured to be realtime only. | 20 # Encoder is configured to be realtime only. |
21 'target_name': 'libvpx', | 21 'target_name': 'libvpx', |
22 'type': 'static_library', | 22 'type': 'static_library', |
23 'variables': { | 23 'variables': { |
24 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx', | 24 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx', |
25 'variables': { | |
26 'conditions': [ | |
27 # Reuse linux config for unsupported platforms like BSD and | |
Ami GONE FROM CHROMIUM
2011/11/23 20:07:42
This (and the next line) should be indented 2 extr
| |
28 # Solaris. This compiles but no guarantee it'll run. | |
29 ['os_posix == 1 and OS != "mac"', { | |
30 '_OS%': 'linux', | |
31 }, { | |
32 '_OS%': '<(OS)', | |
33 }], | |
34 ]}, | |
35 '_OS%': '<(_OS)', | |
25 'yasm_flags': [ | 36 'yasm_flags': [ |
26 '-I', 'source/config/<(OS)/<(target_arch)', | 37 '-I', 'source/config/<(_OS)/<(target_arch)', |
27 '-I', 'source/libvpx', | 38 '-I', 'source/libvpx', |
28 ], | 39 ], |
29 }, | 40 }, |
30 'includes': [ | 41 'includes': [ |
31 '../yasm/yasm_compile.gypi' | 42 '../yasm/yasm_compile.gypi' |
32 ], | 43 ], |
33 'include_dirs': [ | 44 'include_dirs': [ |
34 'source/config/<(OS)/<(target_arch)', | 45 'source/config/<(_OS)/<(target_arch)', |
35 'source/libvpx', | 46 'source/libvpx', |
36 'source/libvpx/vp8/common', | 47 'source/libvpx/vp8/common', |
37 'source/libvpx/vp8/decoder', | 48 'source/libvpx/vp8/decoder', |
38 'source/libvpx/vp8/encoder', | 49 'source/libvpx/vp8/encoder', |
39 ], | 50 ], |
40 'direct_dependent_settings': { | 51 'direct_dependent_settings': { |
41 'include_dirs': [ | 52 'include_dirs': [ |
42 'source/libvpx', | 53 'source/libvpx', |
43 ], | 54 ], |
44 }, | 55 }, |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
257 ], | 268 ], |
258 }, | 269 }, |
259 ], | 270 ], |
260 } | 271 } |
261 | 272 |
262 # Local Variables: | 273 # Local Variables: |
263 # tab-width:2 | 274 # tab-width:2 |
264 # indent-tabs-mode:nil | 275 # indent-tabs-mode:nil |
265 # End: | 276 # End: |
266 # vim: set expandtab tabstop=2 shiftwidth=2: | 277 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |