| OLD | NEW |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 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 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
| 6 # for translating .asm files to .S files using ads2gas. | 6 # for translating .asm files to .S files using ads2gas. |
| 7 # | 7 # |
| 8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
| 9 # { | 9 # { |
| 10 # 'target_name': 'my_lib', | 10 # 'target_name': 'my_lib', |
| 11 # 'sources': [ | 11 # 'sources': [ |
| 12 # 'foo.asm', | 12 # 'foo.asm', |
| 13 # 'bar.c', | 13 # 'bar.c', |
| 14 # ], | 14 # ], |
| 15 # 'includes': [ 'ads2gas.gypi' ], | 15 # 'includes': [ 'ads2gas.gypi' ], |
| 16 # } | 16 # } |
| 17 { | 17 { |
| 18 'variables': { | 18 'variables': { |
| 19 # Location of the intermediate output. | 19 # Location of the intermediate output. |
| 20 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx_new', | 20 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx', |
| 21 'variables': { | 21 'variables': { |
| 22 'libvpx_source%': 'source/libvpx', | 22 'libvpx_source%': 'source/libvpx', |
| 23 'conditions': [ | 23 'conditions': [ |
| 24 ['OS=="ios"', { | 24 ['OS=="ios"', { |
| 25 'ads2gas_script%': 'ads2gas_apple.pl', | 25 'ads2gas_script%': 'ads2gas_apple.pl', |
| 26 }, { | 26 }, { |
| 27 'ads2gas_script%': 'ads2gas.pl', | 27 'ads2gas_script%': 'ads2gas.pl', |
| 28 }], | 28 }], |
| 29 ], | 29 ], |
| 30 }, | 30 }, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 45 'action': [ | 45 'action': [ |
| 46 'bash', | 46 'bash', |
| 47 '-c', | 47 '-c', |
| 48 'cat <(RULE_INPUT_PATH) | perl <(ads2gas_script_dir)/<(ads2gas_script) -
chromium > <(shared_generated_dir)/<(RULE_INPUT_ROOT).S', | 48 'cat <(RULE_INPUT_PATH) | perl <(ads2gas_script_dir)/<(ads2gas_script) -
chromium > <(shared_generated_dir)/<(RULE_INPUT_ROOT).S', |
| 49 ], | 49 ], |
| 50 'process_outputs_as_sources': 1, | 50 'process_outputs_as_sources': 1, |
| 51 'message': 'Convert libvpx asm file for ARM <(RULE_INPUT_PATH)', | 51 'message': 'Convert libvpx asm file for ARM <(RULE_INPUT_PATH)', |
| 52 }, | 52 }, |
| 53 ], | 53 ], |
| 54 } | 54 } |
| OLD | NEW |