Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 from recipe_engine.config import BadConf | 5 from recipe_engine.config import BadConf |
| 6 | 6 |
| 7 import DEPS | 7 import DEPS |
| 8 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX | 8 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX |
| 9 from recipe_engine.config_types import Path | 9 from recipe_engine.config_types import Path |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 if c.TARGET_PLATFORM != 'ios': | 45 if c.TARGET_PLATFORM != 'ios': |
| 46 raise BadConf('Only "ios" target platform is supported (got: "%s")' % | 46 raise BadConf('Only "ios" target platform is supported (got: "%s")' % |
| 47 c.TARGET_PLATFORM) # pragma: no cover | 47 c.TARGET_PLATFORM) # pragma: no cover |
| 48 c.build_config_fs = c.BUILD_CONFIG + '-iphoneos' | 48 c.build_config_fs = c.BUILD_CONFIG + '-iphoneos' |
| 49 | 49 |
| 50 gyp_defs = c.gyp_env.GYP_DEFINES | 50 gyp_defs = c.gyp_env.GYP_DEFINES |
| 51 gyp_defs['OS'] = c.TARGET_PLATFORM | 51 gyp_defs['OS'] = c.TARGET_PLATFORM |
| 52 if c.TARGET_BITS == 64: | 52 if c.TARGET_BITS == 64: |
| 53 gyp_defs['target_subarch'] = 'arm64' | 53 gyp_defs['target_subarch'] = 'arm64' |
| 54 | 54 |
| 55 c.gn_args.append('target_os=%s' % c.TARGET_PLATFORM) | 55 c.gn_args.append('target_os="%s"' % c.TARGET_PLATFORM) |
|
kjellander_chromium
2016/10/17 11:20:35
This needed the quoting.
| |
| 56 _libyuv_common(c) | 56 _libyuv_common(c) |
| 57 _libyuv_static_build(c) | 57 _libyuv_static_build(c) |
| 58 | 58 |
| 59 def _libyuv_common(c): | 59 def _libyuv_common(c): |
| 60 c.compile_py.default_targets = [] | 60 c.compile_py.default_targets = [] |
| 61 | 61 |
| 62 def _libyuv_static_build(c): | 62 def _libyuv_static_build(c): |
| 63 # TODO(kjellander): Investigate moving this into chromium recipe module's | 63 # TODO(kjellander): Investigate moving this into chromium recipe module's |
| 64 # static_library config instead. | 64 # static_library config instead. |
| 65 if c.BUILD_CONFIG == 'Debug': | 65 if c.BUILD_CONFIG == 'Debug': |
| 66 # GN defaults to component builds for Debug, but some build configurations | 66 # GN defaults to component builds for Debug, but some build configurations |
| 67 # (Android and iOS) needs it to be static. | 67 # (Android and iOS) needs it to be static. |
| 68 c.gn_args.append('is_component_build=false') | 68 c.gn_args.append('is_component_build=false') |
| OLD | NEW |