Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import pipes | 5 import pipes |
| 6 | 6 |
| 7 from recipe_engine.config import config_item_context, ConfigGroup | 7 from recipe_engine.config import config_item_context, ConfigGroup |
| 8 from recipe_engine.config import Dict, List, Single, Static, Set, BadConf | 8 from recipe_engine.config import Dict, List, Single, Static, Set, BadConf |
| 9 from recipe_engine.config_types import Path | 9 from recipe_engine.config_types import Path |
| 10 | 10 |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 359 @config_ctx() | 359 @config_ctx() |
| 360 def ffmpeg_branding(c, branding=None): | 360 def ffmpeg_branding(c, branding=None): |
| 361 if branding: | 361 if branding: |
| 362 c.gyp_env.GYP_DEFINES['ffmpeg_branding'] = branding | 362 c.gyp_env.GYP_DEFINES['ffmpeg_branding'] = branding |
| 363 | 363 |
| 364 @config_ctx() | 364 @config_ctx() |
| 365 def proprietary_codecs(c, invert=False): | 365 def proprietary_codecs(c, invert=False): |
| 366 c.gyp_env.GYP_DEFINES['proprietary_codecs'] = int(not invert) | 366 c.gyp_env.GYP_DEFINES['proprietary_codecs'] = int(not invert) |
| 367 | 367 |
| 368 @config_ctx() | 368 @config_ctx() |
| 369 def openh264(c): | |
|
hbos_chromium
2016/01/11 14:21:09
Hmm the name "openh264" might be misleading here s
kjellander_chromium
2016/01/12 10:11:45
Well, OpenH264 is not used at all in Chromium, as
| |
| 370 ffmpeg_branding(c, branding='Chrome') | |
|
hbos_chromium
2016/01/11 14:21:09
(Any idea what happens if multiple defs are used a
kjellander_chromium
2016/01/12 10:11:45
Any latter will overwrite the previous, but it's u
| |
| 371 c.gyp_env.GYP_DEFINES['use_openh264'] = 1 | |
| 372 c.gyp_env.GYP_DEFINES['use_third_party_h264'] = 1 | |
| 373 | |
| 374 @config_ctx() | |
| 369 def chrome_with_codecs(c): | 375 def chrome_with_codecs(c): |
| 370 ffmpeg_branding(c, branding='Chrome') | 376 ffmpeg_branding(c, branding='Chrome') |
| 371 proprietary_codecs(c) | 377 proprietary_codecs(c) |
| 372 | 378 |
| 373 @config_ctx() | 379 @config_ctx() |
| 374 def chromiumos(c): | 380 def chromiumos(c): |
| 375 c.gyp_env.GYP_DEFINES['chromeos'] = 1 | 381 c.gyp_env.GYP_DEFINES['chromeos'] = 1 |
| 376 | 382 |
| 377 @config_ctx(includes=['chromiumos']) | 383 @config_ctx(includes=['chromiumos']) |
| 378 def chromeos(c): | 384 def chromeos(c): |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 820 def chromium_deterministic_build(c): | 826 def chromium_deterministic_build(c): |
| 821 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1 | 827 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1 |
| 822 | 828 |
| 823 @config_ctx(includes=['chromium_clang']) | 829 @config_ctx(includes=['chromium_clang']) |
| 824 def cast_linux(c): | 830 def cast_linux(c): |
| 825 c.gyp_env.GYP_DEFINES['chromecast'] = 1 | 831 c.gyp_env.GYP_DEFINES['chromecast'] = 1 |
| 826 | 832 |
| 827 @config_ctx() | 833 @config_ctx() |
| 828 def internal_gles2_conform_tests(c): | 834 def internal_gles2_conform_tests(c): |
| 829 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1 | 835 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1 |
| OLD | NEW |