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.
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.
8 # To use this, create a gyp target with the following form:
10 # 'target_name': 'my_lib',
15 # 'includes': [ 'ads2gas.gypi' ],
19 # Location of the intermediate output.
20 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx',
22 'libvpx_source%': 'source/libvpx',
25 'ads2gas_script%': 'ads2gas_apple.pl',
27 'ads2gas_script%': 'ads2gas.pl',
31 'ads2gas_script%': '<(ads2gas_script)',
32 'ads2gas_script_dir': '<(libvpx_source)/build/make',
36 'rule_name': 'convert_asm',
39 '<(ads2gas_script_dir)/<(ads2gas_script)',
40 '<(ads2gas_script_dir)/thumb.pm',
43 '<(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',
50 'process_outputs_as_sources': 1,
51 'message': 'Convert libvpx asm file for ARM <(RULE_INPUT_PATH)',