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 # This file is meant to be included into a target to provide a rule | |
6 # for translating .asm files to .S files using ads2gas. | |
7 # | |
8 # To use this, create a gyp target with the following form: | |
9 # { | |
10 # 'target_name': 'my_lib', | |
11 # 'sources': [ | |
12 # 'foo.asm', | |
13 # 'bar.c', | |
14 # ], | |
15 # 'includes': [ 'ads2gas.gypi' ], | |
16 # } | |
17 { | |
18 'variables': { | |
19 # Location of the intermediate output. | |
20 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx_new', | |
21 'variables': { | |
22 'libvpx_source%': 'source/libvpx', | |
23 'conditions': [ | |
24 ['OS=="ios"', { | |
25 'ads2gas_script%': 'ads2gas_apple.pl', | |
26 }, { | |
27 'ads2gas_script%': 'ads2gas.pl', | |
28 }], | |
29 ], | |
30 }, | |
31 'ads2gas_script%': '<(ads2gas_script)', | |
32 'ads2gas_script_dir': '<(libvpx_source)/build/make', | |
33 }, | |
34 'rules': [ | |
35 { | |
36 'rule_name': 'convert_asm', | |
37 'extension': 'asm', | |
38 'inputs': [ | |
39 '<(ads2gas_script_dir)/<(ads2gas_script)', | |
40 '<(ads2gas_script_dir)/thumb.pm', | |
41 ], | |
42 'outputs': [ | |
43 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).S', | |
44 ], | |
45 'action': [ | |
46 'bash', | |
47 '-c', | |
48 'cat <(RULE_INPUT_PATH) | perl <(ads2gas_script_dir)/<(ads2gas_script) -
chromium > <(shared_generated_dir)/<(RULE_INPUT_ROOT).S', | |
49 ], | |
50 'process_outputs_as_sources': 1, | |
51 'message': 'Convert libvpx asm file for ARM <(RULE_INPUT_PATH)', | |
52 }, | |
53 ], | |
54 } | |
OLD | NEW |