| OLD | NEW |
| 1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 declare_args() { | 6 declare_args() { |
| 7 ar = "ar" | 7 ar = "ar" |
| 8 cc = "cc" | 8 cc = "cc" |
| 9 cxx = "c++" | 9 cxx = "c++" |
| 10 } | 10 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 depsformat = "gcc" | 81 depsformat = "gcc" |
| 82 outputs = [ | 82 outputs = [ |
| 83 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", | 83 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", |
| 84 ] | 84 ] |
| 85 description = "$cc ... -o {{output}}" | 85 description = "$cc ... -o {{output}}" |
| 86 } | 86 } |
| 87 | 87 |
| 88 tool("alink") { | 88 tool("alink") { |
| 89 command = "rm -f {{output}} && $ar rcs {{output}} {{inputs}}" | 89 command = "rm -f {{output}} && $ar rcs {{output}} {{inputs}}" |
| 90 outputs = [ | 90 outputs = [ |
| 91 "{{target_out_dir}}/{{target_output_name}}{{output_extension}}", | 91 "{{root_out_dir}}/{{target_output_name}}{{output_extension}}", |
| 92 ] | 92 ] |
| 93 default_output_extension = ".a" | 93 default_output_extension = ".a" |
| 94 output_prefix = "lib" | 94 output_prefix = "lib" |
| 95 description = "$ar {{output}} ..." | 95 description = "$ar {{output}} ..." |
| 96 } | 96 } |
| 97 | 97 |
| 98 tool("solink") { | 98 tool("solink") { |
| 99 soname = "{{target_output_name}}{{output_extension}}" | 99 soname = "{{target_output_name}}{{output_extension}}" |
| 100 | 100 |
| 101 rpath = "-Wl,-soname,$soname" | 101 rpath = "-Wl,-soname,$soname" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 121 } | 121 } |
| 122 | 122 |
| 123 tool("stamp") { | 123 tool("stamp") { |
| 124 command = "touch {{output}}" | 124 command = "touch {{output}}" |
| 125 } | 125 } |
| 126 | 126 |
| 127 tool("copy") { | 127 tool("copy") { |
| 128 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} &&
cp -af {{source}} {{output}})" | 128 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} &&
cp -af {{source}} {{output}})" |
| 129 } | 129 } |
| 130 } | 130 } |
| OLD | NEW |