| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 @CONFIG_CTX(includes=['ninja', 'gcc', 'goma']) | 24 @CONFIG_CTX(includes=['ninja', 'gcc', 'goma']) |
| 25 def libyuv_gcc(c): | 25 def libyuv_gcc(c): |
| 26 _libyuv_common(c) | 26 _libyuv_common(c) |
| 27 | 27 |
| 28 @CONFIG_CTX(includes=['android']) | 28 @CONFIG_CTX(includes=['android']) |
| 29 def libyuv_android(c): | 29 def libyuv_android(c): |
| 30 if c.TARGET_ARCH == 'intel' and c.TARGET_BITS == 32: | 30 if c.TARGET_ARCH == 'intel' and c.TARGET_BITS == 32: |
| 31 c.gn_args.append('android_full_debug=true') | 31 c.gn_args.append('android_full_debug=true') |
| 32 | 32 |
| 33 # Needs minimal symbols due to 4GB file size limit, see crbug.com/648948. |
| 34 c.gn_args.append('symbol_level=1') |
| 35 |
| 33 _libyuv_static_build(c) | 36 _libyuv_static_build(c) |
| 34 | 37 |
| 35 @CONFIG_CTX(includes=['android_clang']) | 38 @CONFIG_CTX(includes=['android_clang']) |
| 36 def libyuv_android_clang(c): | 39 def libyuv_android_clang(c): |
| 37 _libyuv_static_build(c) | 40 _libyuv_static_build(c) |
| 38 | 41 |
| 39 @CONFIG_CTX(includes=['chromium', 'static_library']) | 42 @CONFIG_CTX(includes=['chromium', 'static_library']) |
| 40 def libyuv_ios(c): | 43 def libyuv_ios(c): |
| 41 if c.HOST_PLATFORM != 'mac': | 44 if c.HOST_PLATFORM != 'mac': |
| 42 raise BadConf('Only "mac" host platform is supported for iOS (got: "%s")' % | 45 raise BadConf('Only "mac" host platform is supported for iOS (got: "%s")' % |
| (...skipping 11 matching lines...) Expand all Loading... |
| 54 def _libyuv_common(c): | 57 def _libyuv_common(c): |
| 55 c.compile_py.default_targets = [] | 58 c.compile_py.default_targets = [] |
| 56 | 59 |
| 57 def _libyuv_static_build(c): | 60 def _libyuv_static_build(c): |
| 58 # TODO(kjellander): Investigate moving this into chromium recipe module's | 61 # TODO(kjellander): Investigate moving this into chromium recipe module's |
| 59 # static_library config instead. | 62 # static_library config instead. |
| 60 if c.BUILD_CONFIG == 'Debug': | 63 if c.BUILD_CONFIG == 'Debug': |
| 61 # GN defaults to component builds for Debug, but some build configurations | 64 # GN defaults to component builds for Debug, but some build configurations |
| 62 # (Android and iOS) needs it to be static. | 65 # (Android and iOS) needs it to be static. |
| 63 c.gn_args.append('is_component_build=false') | 66 c.gn_args.append('is_component_build=false') |
| OLD | NEW |