| 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 'gn': Property(default=True, kind=bool), | 25 'gn': Property(default=True, kind=bool), |
| 26 'skip_test': Property(default=False, kind=bool), | 26 'skip_test': Property(default=False, kind=bool), |
| 27 'target_os': Property(default=None, kind=str), | 27 'target_os': Property(default=None, kind=str), |
| 28 } | 28 } |
| 29 | 29 |
| 30 def _CheckoutSteps(api, memory_tool, skia, xfa, v8, target_cpu, clang, gn, | 30 def _CheckoutSteps(api, memory_tool, skia, xfa, v8, target_cpu, clang, gn, |
| 31 target_os): | 31 target_os): |
| 32 assert(gn) | 32 assert(gn) |
| 33 | 33 |
| 34 # Checkout pdfium and its dependencies (specified in DEPS) using gclient. | 34 # Checkout pdfium and its dependencies (specified in DEPS) using gclient. |
| 35 api.gclient.set_config('pdfium') | 35 api.gclient.set_config('pdfium', GIT_MODE=True) |
| 36 if target_os: | 36 if target_os: |
| 37 api.gclient.c.target_os = {target_os} | 37 api.gclient.c.target_os = {target_os} |
| 38 api.bot_update.ensure_checkout(force=True) | 38 api.bot_update.ensure_checkout(force=True) |
| 39 | 39 |
| 40 gyp_defines = [ | 40 gyp_defines = [ |
| 41 'pdf_enable_v8=%d' % int(v8), | 41 'pdf_enable_v8=%d' % int(v8), |
| 42 'pdf_enable_xfa=%d' % int(xfa), | 42 'pdf_enable_xfa=%d' % int(xfa), |
| 43 ] | 43 ] |
| 44 | 44 |
| 45 if skia: | 45 if skia: |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 | 392 |
| 393 yield ( | 393 yield ( |
| 394 api.test('android') + | 394 api.test('android') + |
| 395 api.platform('linux', 64) + | 395 api.platform('linux', 64) + |
| 396 api.properties(mastername='client.pdfium', | 396 api.properties(mastername='client.pdfium', |
| 397 buildername='android', | 397 buildername='android', |
| 398 slavename='test_slave', | 398 slavename='test_slave', |
| 399 target_os='android', | 399 target_os='android', |
| 400 skip_test=True) | 400 skip_test=True) |
| 401 ) | 401 ) |
| OLD | NEW |