1 # Copyright 2014 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.
7 depfile = "{{output}}.d"
8 command = "gcc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} -c {{source}} -o {{output}}"
10 description = "CC {{output}}"
12 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o",
17 depfile = "{{output}}.d"
18 command = "g++ -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} -c {{source}} -o {{output}}"
20 description = "CXX {{output}}"
22 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o",
27 rspfile = "{{output}}.rsp"
28 command = "rm -f {{output}} && ar rcs {{output}} @$rspfile"
29 description = "AR {{target_output_name}}{{output_extension}}"
30 rspfile_content = "{{inputs}}"
32 "{{target_out_dir}}/{{target_output_name}}{{output_extension}}",
34 default_output_extension = ".a"
39 soname = "{{target_output_name}}{{output_extension}}" # e.g. "libfoo.so".
40 rspfile = soname + ".rsp"
42 command = "g++ -shared {{ldflags}} -o $soname -Wl,-soname=$soname @$rspfile"
43 rspfile_content = "-Wl,--whole-archive {{inputs}} {{solibs}} -Wl,--no-whole-archive {{libs}}"
45 description = "SOLINK $soname"
47 # Use this for {{output_extension}} expansions unless a target manually
48 # overrides it (in which case {{output_extension}} will be what the target
50 default_output_extension = ".so"
56 depend_output = soname
61 outfile = "{{target_output_name}}{{output_extension}}"
62 rspfile = "$outfile.rsp"
63 command = "g++ {{ldflags}} -o $outfile -Wl,--start-group @$rspfile {{solibs}} -Wl,--end-group {{libs}}"
64 description = "LINK $outfile"
65 rspfile_content = "{{inputs}}"
72 command = "touch {{output}}"
73 description = "STAMP {{output}}"
77 command = "cp -af {{source}} {{output}}"
78 description = "COPY {{source}} {{output}}"