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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 @config_ctx() | 360 @config_ctx() |
361 def proprietary_codecs(c, invert=False): | 361 def proprietary_codecs(c, invert=False): |
362 c.gyp_env.GYP_DEFINES['proprietary_codecs'] = int(not invert) | 362 c.gyp_env.GYP_DEFINES['proprietary_codecs'] = int(not invert) |
363 | 363 |
364 @config_ctx() | 364 @config_ctx() |
365 def chrome_with_codecs(c): | 365 def chrome_with_codecs(c): |
366 ffmpeg_branding(c, branding='Chrome') | 366 ffmpeg_branding(c, branding='Chrome') |
367 proprietary_codecs(c) | 367 proprietary_codecs(c) |
368 | 368 |
369 @config_ctx() | 369 @config_ctx() |
| 370 def chromeos_with_codecs(c): |
| 371 ffmpeg_branding(c, branding='ChromeOS') |
| 372 proprietary_codecs(c) |
| 373 |
| 374 @config_ctx() |
370 def chromiumos(c): | 375 def chromiumos(c): |
371 c.gyp_env.GYP_DEFINES['chromeos'] = 1 | 376 c.gyp_env.GYP_DEFINES['chromeos'] = 1 |
372 | 377 |
373 @config_ctx(includes=['chromiumos']) | 378 @config_ctx(includes=['chromiumos']) |
374 def chromeos(c): | 379 def chromeos(c): |
375 ffmpeg_branding(c, branding='ChromeOS') | 380 ffmpeg_branding(c, branding='ChromeOS') |
376 proprietary_codecs(c) | 381 proprietary_codecs(c) |
377 | 382 |
378 @config_ctx() | 383 @config_ctx() |
379 def ozone(c): | 384 def ozone(c): |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1 | 827 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1 |
823 | 828 |
824 @config_ctx() | 829 @config_ctx() |
825 def build_angle_deqp_tests(c): | 830 def build_angle_deqp_tests(c): |
826 c.gyp_env.GYP_DEFINES['build_angle_deqp_tests'] = 1 | 831 c.gyp_env.GYP_DEFINES['build_angle_deqp_tests'] = 1 |
827 | 832 |
828 @config_ctx() | 833 @config_ctx() |
829 def force_mac_toolchain(c): | 834 def force_mac_toolchain(c): |
830 c.env.FORCE_MAC_TOOLCHAIN = 1 | 835 c.env.FORCE_MAC_TOOLCHAIN = 1 |
831 c.gyp_env.FORCE_MAC_TOOLCHAIN = 1 | 836 c.gyp_env.FORCE_MAC_TOOLCHAIN = 1 |
OLD | NEW |