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

Unified Diff: scripts/slave/recipe_modules/webrtc/chromium_config.py

Issue 75163006: WebRTC Android APK trybot recipe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Rebased, removed video_engine_tests Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/slave/recipe_modules/webrtc/api.py ('k') | scripts/slave/recipe_modules/webrtc/config.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/webrtc/chromium_config.py
diff --git a/scripts/slave/recipe_modules/webrtc/chromium_config.py b/scripts/slave/recipe_modules/webrtc/chromium_config.py
new file mode 100644
index 0000000000000000000000000000000000000000..3abbd5e87b9264115801ef102c406b07d1bd205b
--- /dev/null
+++ b/scripts/slave/recipe_modules/webrtc/chromium_config.py
@@ -0,0 +1,24 @@
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from slave.recipe_config import BadConf
+
+from RECIPE_MODULES.chromium import CONFIG_CTX
+
+
+SUPPORTED_TARGET_ARCHS = ('intel', 'arm')
+
+@CONFIG_CTX(includes=['android'])
+def webrtc_android_apk_try_builder(c):
+ if c.TARGET_PLATFORM != 'android':
+ raise BadConf('Only "android" platform is supported (got: "%s")' %
+ c.TARGET_PLATFORM)
+ if c.TARGET_ARCH not in SUPPORTED_TARGET_ARCHS:
+ raise BadConf('Only "%s" architectures are supported (got: "%s")' %
+ (','.join(SUPPORTED_TARGET_ARCHS), c.TARGET_ARCH))
+
+ c.compile_py.default_targets = ['android_builder_webrtc']
+ c.gyp_env.GYP_GENERATOR_FLAGS['default_target'] = 'android_builder_webrtc'
+ c.gyp_env.GYP_DEFINES['include_tests'] = 1
+
« no previous file with comments | « scripts/slave/recipe_modules/webrtc/api.py ('k') | scripts/slave/recipe_modules/webrtc/config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698