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): | |
370 ffmpeg_branding(c, branding='Chrome') | |
371 c.gyp_env.GYP_DEFINES['use_openh264'] = 1 | |
372 c.gyp_env.GYP_DEFINES['use_third_party_h264'] = 1 | |
373 | |
374 @config_ctx() | |
375 def chrome_with_codecs(c): | 369 def chrome_with_codecs(c): |
376 ffmpeg_branding(c, branding='Chrome') | 370 ffmpeg_branding(c, branding='Chrome') |
377 proprietary_codecs(c) | 371 proprietary_codecs(c) |
378 | 372 |
379 @config_ctx() | 373 @config_ctx() |
380 def chromiumos(c): | 374 def chromiumos(c): |
381 c.gyp_env.GYP_DEFINES['chromeos'] = 1 | 375 c.gyp_env.GYP_DEFINES['chromeos'] = 1 |
382 | 376 |
383 @config_ctx(includes=['chromiumos']) | 377 @config_ctx(includes=['chromiumos']) |
384 def chromeos(c): | 378 def chromeos(c): |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 def chromium_deterministic_build(c): | 820 def chromium_deterministic_build(c): |
827 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1 | 821 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1 |
828 | 822 |
829 @config_ctx(includes=['chromium_clang']) | 823 @config_ctx(includes=['chromium_clang']) |
830 def cast_linux(c): | 824 def cast_linux(c): |
831 c.gyp_env.GYP_DEFINES['chromecast'] = 1 | 825 c.gyp_env.GYP_DEFINES['chromecast'] = 1 |
832 | 826 |
833 @config_ctx() | 827 @config_ctx() |
834 def internal_gles2_conform_tests(c): | 828 def internal_gles2_conform_tests(c): |
835 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1 | 829 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1 |
OLD | NEW |