summaryrefslogtreecommitdiffstats
path: root/tools/gn/bootstrap/build_mac.ninja.template
blob: 409ea75b1e3a179ba51ba231e4ec3dc275eacb2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cc = cc
cxx = c++
ld = $cc
ldxx = $cxx
ar = ar

rule cc
  command = $cc -MMD -MF $out.d $defines $includes $cflags $cflags_c -c $in -o $out
  description = CC $out
  depfile = $out.d
  deps = gcc

rule cxx
  command = $cxx -MMD -MF $out.d $defines $includes $cflags $cflags_cc -c $in -o $out
  description = CXX $out
  depfile = $out.d
  deps = gcc

rule alink_thin
  command = rm -f $out && libtool -static -o $out $in
  description = AR $out

rule link
  command = $ld $ldflags -o $out $in $solibs $libs
  description = LINK $out