Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: scripts/slave/recipe_modules/libyuv/chromium_config.py

Issue 2426883002: libyuv: Remove all GYP builders. (Closed)
Patch Set: Removed unused chromium recipe module configs Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « scripts/slave/recipe_modules/libyuv/builders.py ('k') | scripts/slave/recipes/libyuv/libyuv.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10 matching lines...) Expand all
21 def libyuv_clang(c): 21 def libyuv_clang(c):
22 _libyuv_common(c) 22 _libyuv_common(c)
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.gyp_env.GYP_DEFINES['android_full_debug'] = 1
32 c.gn_args.append('android_full_debug=true') 31 c.gn_args.append('android_full_debug=true')
33 32
34 _libyuv_static_build(c) 33 _libyuv_static_build(c)
35 34
36 @CONFIG_CTX(includes=['android_clang']) 35 @CONFIG_CTX(includes=['android_clang'])
37 def libyuv_android_clang(c): 36 def libyuv_android_clang(c):
38 _libyuv_static_build(c) 37 _libyuv_static_build(c)
39 38
40 @CONFIG_CTX(includes=['chromium', 'static_library']) 39 @CONFIG_CTX(includes=['chromium', 'static_library'])
41 def libyuv_ios(c): 40 def libyuv_ios(c):
42 if c.HOST_PLATFORM != 'mac': 41 if c.HOST_PLATFORM != 'mac':
43 raise BadConf('Only "mac" host platform is supported for iOS (got: "%s")' % 42 raise BadConf('Only "mac" host platform is supported for iOS (got: "%s")' %
44 c.HOST_PLATFORM) # pragma: no cover 43 c.HOST_PLATFORM) # pragma: no cover
45 if c.TARGET_PLATFORM != 'ios': 44 if c.TARGET_PLATFORM != 'ios':
46 raise BadConf('Only "ios" target platform is supported (got: "%s")' % 45 raise BadConf('Only "ios" target platform is supported (got: "%s")' %
47 c.TARGET_PLATFORM) # pragma: no cover 46 c.TARGET_PLATFORM) # pragma: no cover
48 c.build_config_fs = c.BUILD_CONFIG + '-iphoneos' 47 c.build_config_fs = c.BUILD_CONFIG + '-iphoneos'
49 48
50 gyp_defs = c.gyp_env.GYP_DEFINES
51 gyp_defs['OS'] = c.TARGET_PLATFORM
52 if c.TARGET_BITS == 64:
53 gyp_defs['target_subarch'] = 'arm64'
54
55 c.gn_args.append('ios_enable_code_signing=false') 49 c.gn_args.append('ios_enable_code_signing=false')
56 c.gn_args.append('target_os="%s"' % c.TARGET_PLATFORM) 50 c.gn_args.append('target_os="%s"' % c.TARGET_PLATFORM)
57 _libyuv_common(c) 51 _libyuv_common(c)
58 _libyuv_static_build(c) 52 _libyuv_static_build(c)
59 53
60 def _libyuv_common(c): 54 def _libyuv_common(c):
61 c.compile_py.default_targets = [] 55 c.compile_py.default_targets = []
62 56
63 def _libyuv_static_build(c): 57 def _libyuv_static_build(c):
64 # TODO(kjellander): Investigate moving this into chromium recipe module's 58 # TODO(kjellander): Investigate moving this into chromium recipe module's
65 # static_library config instead. 59 # static_library config instead.
66 if c.BUILD_CONFIG == 'Debug': 60 if c.BUILD_CONFIG == 'Debug':
67 # GN defaults to component builds for Debug, but some build configurations 61 # GN defaults to component builds for Debug, but some build configurations
68 # (Android and iOS) needs it to be static. 62 # (Android and iOS) needs it to be static.
69 c.gn_args.append('is_component_build=false') 63 c.gn_args.append('is_component_build=false')
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/libyuv/builders.py ('k') | scripts/slave/recipes/libyuv/libyuv.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698