| 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 DEPS = [ | 5 DEPS = [ |
| 6 'depot_tools/gclient', | 6 'depot_tools/gclient', |
| 7 'depot_tools/bot_update', | 7 'depot_tools/bot_update', |
| 8 'recipe_engine/path', | 8 'recipe_engine/path', |
| 9 'recipe_engine/platform', | 9 'recipe_engine/platform', |
| 10 'recipe_engine/properties', | 10 'recipe_engine/properties', |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 'skip_test': Property(default=False, kind=bool), | 25 'skip_test': Property(default=False, kind=bool), |
| 26 'target_os': Property(default=None, kind=str), | 26 'target_os': Property(default=None, kind=str), |
| 27 } | 27 } |
| 28 | 28 |
| 29 def _CheckoutSteps(api, memory_tool, skia, xfa, v8, target_cpu, clang, | 29 def _CheckoutSteps(api, memory_tool, skia, xfa, v8, target_cpu, clang, |
| 30 target_os): | 30 target_os): |
| 31 # Checkout pdfium and its dependencies (specified in DEPS) using gclient. | 31 # Checkout pdfium and its dependencies (specified in DEPS) using gclient. |
| 32 api.gclient.set_config('pdfium') | 32 api.gclient.set_config('pdfium') |
| 33 if target_os: | 33 if target_os: |
| 34 api.gclient.c.target_os = {target_os} | 34 api.gclient.c.target_os = {target_os} |
| 35 api.bot_update.ensure_checkout(force=True) | 35 api.bot_update.ensure_checkout() |
| 36 | 36 |
| 37 api.gclient.runhooks() | 37 api.gclient.runhooks() |
| 38 | 38 |
| 39 | 39 |
| 40 def _GNGenBuilds(api, memory_tool, skia, xfa, v8, target_cpu, clang, rel, | 40 def _GNGenBuilds(api, memory_tool, skia, xfa, v8, target_cpu, clang, rel, |
| 41 target_os, out_dir): | 41 target_os, out_dir): |
| 42 gn_bool = {True: 'true', False: 'false'} | 42 gn_bool = {True: 'true', False: 'false'} |
| 43 # Generate build files by GN. | 43 # Generate build files by GN. |
| 44 checkout = api.path['checkout'] | 44 checkout = api.path['checkout'] |
| 45 gn_cmd = api.path['depot_tools'].join('gn.py') | 45 gn_cmd = api.path['depot_tools'].join('gn.py') |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 372 |
| 373 yield ( | 373 yield ( |
| 374 api.test('android') + | 374 api.test('android') + |
| 375 api.platform('linux', 64) + | 375 api.platform('linux', 64) + |
| 376 api.properties(mastername='client.pdfium', | 376 api.properties(mastername='client.pdfium', |
| 377 buildername='android', | 377 buildername='android', |
| 378 slavename='test_slave', | 378 slavename='test_slave', |
| 379 target_os='android', | 379 target_os='android', |
| 380 skip_test=True) | 380 skip_test=True) |
| 381 ) | 381 ) |
| OLD | NEW |