summaryrefslogtreecommitdiff
path: root/gn/build/build_mac.ninja.template
blob: e7dedac2f1482f2b4b7e1da589bf304180c6d0ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 && $ar rcs $out $in
  description = AR $out

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