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

Unified Diff: scripts/slave/recipe_modules/base_android/api.py

Issue 505153002: WebRTC: Remove android_apk recipe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Rebased Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/base_android/api.py
diff --git a/scripts/slave/recipe_modules/base_android/api.py b/scripts/slave/recipe_modules/base_android/api.py
deleted file mode 100644
index 173dcd99a1e1b3acb3b78f2ea9b8348e5b5c7b00..0000000000000000000000000000000000000000
--- a/scripts/slave/recipe_modules/base_android/api.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# 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 import recipe_api
-
-class BaseAndroidApi(recipe_api.RecipeApi):
- def __init__(self, **kwargs):
- super(BaseAndroidApi, self).__init__(**kwargs)
- self._env = {}
-
- def envsetup(self):
- """Use envsetup.sh to read environment variables to use for Android.
-
- This environment will be used for runhooks, compile and test_runner with the
- exception for the GYP_* variables, which are excluded to avoid confusion
- with settings in the chromium recipe module config.
- """
- envsetup_cmd = [self.m.path['checkout'].join('build', 'android',
- 'envsetup.sh')]
-
- cmd = ([self.m.path['build'].join('scripts', 'slave', 'env_dump.py'),
- '--output-json', self.m.json.output()] + envsetup_cmd)
- result = self.m.step('envsetup', cmd, env=self._env)
-
- env_diff = result.json.output
- self._env.update((k, v) for k, v in env_diff.iteritems()
- if not k.startswith('GYP_'))
-
- def runhooks(self):
- self.m.chromium.runhooks(env=self._env)
-
- def compile(self):
- self.m.chromium.compile(env=self._env)
-
- def test_runner(self, test):
- script = self.m.path['checkout'].join('build', 'android', 'test_runner.py')
- args = ['gtest', '-s', test, '--verbose']
- if self.m.chromium.c.BUILD_CONFIG == 'Release':
- args += ['--release']
- self.m.python(test, script, args, env=self._env)
« no previous file with comments | « scripts/slave/recipe_modules/base_android/__init__.py ('k') | scripts/slave/recipe_modules/webrtc/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698