Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 DEPS = [ | |
| 6 'base_android', | |
| 7 'chromium', | |
| 8 'gclient', | |
| 9 'json', | |
| 10 'path', | |
| 11 'platform', | |
| 12 'properties', | |
| 13 'python', | |
| 14 'step', | |
| 15 'webrtc', | |
| 16 ] | |
| 17 | |
| 18 | |
| 19 def GenSteps(api): | |
| 20 config_vals = {} | |
| 21 config_vals.update( | |
| 22 dict((str(k),v) for k,v in api.properties.iteritems() if k.isupper()) | |
| 23 ) | |
| 24 api.webrtc.set_config('webrtc_android_apk_try_builder', **config_vals) | |
| 25 | |
| 26 # Replace src/third_party/webrtc with a WebRTC ToT checkout and force the | |
| 27 # Chromium code to sync ToT. | |
| 28 api.gclient.c.solutions[0].revision = 'HEAD' | |
|
kjellander_chromium
2013/11/20 14:29:16
I figure the HEAD revision is needed to avoid it g
| |
| 29 api.gclient.c.solutions[0].custom_deps['src/third_party/webrtc'] += ( | |
| 30 '@' + api.properties.get('revision')) | |
| 31 | |
| 32 api.step.auto_resolve_conflicts = True | |
| 33 | |
| 34 yield api.gclient.checkout() | |
| 35 yield api.webrtc.apply_svn_patch() | |
| 36 yield api.base_android.envsetup() | |
| 37 yield api.base_android.runhooks() | |
| 38 yield api.chromium.cleanup_temp() | |
| 39 yield api.base_android.compile() | |
| 40 | |
| 41 for test in api.webrtc.NORMAL_TESTS: | |
| 42 # The libjingle tests are not yet supported on Android. | |
| 43 if not test.startswith('libjingle'): | |
| 44 yield api.base_android.test_runner(test) | |
| 45 | |
| 46 | |
| 47 def GenTests(api): | |
| 48 for build_config in ('Debug', 'Release'): | |
| 49 for target_arch in ('intel', 'arm'): | |
| 50 props = api.properties( | |
| 51 TARGET_PLATFORM='android', | |
| 52 TARGET_ARCH=target_arch, | |
| 53 TARGET_BITS=32, | |
| 54 BUILD_CONFIG=build_config, | |
| 55 ANDROID_APK=True, | |
| 56 revision='12345', | |
| 57 patch_url='try_job_svn_patch' | |
| 58 ) | |
| 59 yield ( | |
| 60 api.test('%s_%s' % (build_config, target_arch)) + | |
| 61 props + | |
| 62 api.platform('linux', 64) + | |
| 63 api.step_data('envsetup', | |
| 64 api.json.output({ | |
| 65 'FOO': 'bar', | |
| 66 'GYP_DEFINES': 'my_new_gyp_def=aaa', | |
| 67 })) | |
| 68 ) | |
| OLD | NEW |