OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2015 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 'variables': { |
| 6 # Location of the intermediate output. |
| 7 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx', |
| 8 'variables': { |
| 9 'libvpx_source%': 'source/libvpx', |
| 10 'conditions': [ |
| 11 ['OS=="ios"', { |
| 12 'ads2gas_script%': 'ads2gas_apple.pl', |
| 13 }, { |
| 14 'ads2gas_script%': 'ads2gas.pl', |
| 15 }], |
| 16 ], |
| 17 }, |
| 18 'ads2gas_script%': '<(ads2gas_script)', |
| 19 # Location of the assembly conversion script. |
| 20 'ads2gas_script_path': '<(libvpx_source)/build/make/<(ads2gas_script)', |
| 21 'ads2gas_script_include': '<(libvpx_source)/build/make/thumb.pm', |
| 22 }, |
| 23 'rules': [ |
| 24 { |
| 25 'rule_name': 'convert_asm', |
| 26 'extension': 'asm', |
| 27 'inputs': [ |
| 28 '<(shared_generated_dir)/<(ads2gas_script)', |
| 29 '<(shared_generated_dir)/thumb.pm', |
| 30 ], |
| 31 'outputs': [ |
| 32 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).S', |
| 33 ], |
| 34 'action': [ |
| 35 'bash', |
| 36 '-c', |
| 37 'cat <(RULE_INPUT_PATH) | perl <(shared_generated_dir)/<(ads2gas_script)
-chromium > <(shared_generated_dir)/<(RULE_INPUT_ROOT).S', |
| 38 ], |
| 39 'process_outputs_as_sources': 1, |
| 40 'message': 'Convert libvpx asm file for ARM <(RULE_INPUT_PATH)', |
| 41 }, |
| 42 ], |
| 43 |
| 44 # Copy the script to the output folder so that we can use it with |
| 45 # absolute path. |
| 46 'copies': [{ |
| 47 'destination': '<(shared_generated_dir)', |
| 48 'files': [ |
| 49 '<(ads2gas_script_path)', |
| 50 '<(ads2gas_script_include)', |
| 51 ], |
| 52 }], |
| 53 } |
OLD | NEW |