summaryrefslogtreecommitdiff
path: root/gn/build/build_win.ninja.template
blob: 3edfb6a46110384d1d4d9489768e5e045da39e54 (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
rule cc
  command = ninja -t msvc -- $cc /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
  description = CC ${out}
  rspfile = ${out}.rsp
  rspfile_content = ${defines} ${includes} ${cflags} ${cflags_c}
  deps = msvc

rule cxx
  command = ninja -t msvc -- $cxx /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
  description = CXX ${out}
  rspfile = ${out}.rsp
  rspfile_content = ${defines} ${includes} ${cflags} ${cflags_cc}
  deps = msvc

rule alink_thin
  command = ninja -t msvc -- $ar /nologo /ignore:4221 /OUT:${out} @${out}.rsp
  description = LIB ${out}
  rspfile = ${out}.rsp
  rspfile_content = ${in_newline} ${libflags}

rule link
  command = ninja -t msvc -- $ld /nologo /OUT:${out} /PDB:${out}.pdb @${out}.rsp
  description = LINK ${out}
  rspfile = ${out}.rsp
  rspfile_content = ${in_newline} ${libs} ${solibs} ${ldflags}