blob: 3edfb6a46110384d1d4d9489768e5e045da39e54 [file] [log] [blame]
timb21d1192016-07-01 12:23:08 -07001rule cc
Scott Graham74e0a4c2018-06-12 16:01:49 -07002 command = ninja -t msvc -- $cc /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
timb21d1192016-07-01 12:23:08 -07003 description = CC ${out}
4 rspfile = ${out}.rsp
5 rspfile_content = ${defines} ${includes} ${cflags} ${cflags_c}
6 deps = msvc
7
8rule cxx
Scott Graham74e0a4c2018-06-12 16:01:49 -07009 command = ninja -t msvc -- $cxx /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
timb21d1192016-07-01 12:23:08 -070010 description = CXX ${out}
11 rspfile = ${out}.rsp
12 rspfile_content = ${defines} ${includes} ${cflags} ${cflags_cc}
13 deps = msvc
14
15rule alink_thin
Scott Graham74e0a4c2018-06-12 16:01:49 -070016 command = ninja -t msvc -- $ar /nologo /ignore:4221 /OUT:${out} @${out}.rsp
timb21d1192016-07-01 12:23:08 -070017 description = LIB ${out}
18 rspfile = ${out}.rsp
Scott Graham74e0a4c2018-06-12 16:01:49 -070019 rspfile_content = ${in_newline} ${libflags}
timb21d1192016-07-01 12:23:08 -070020
21rule link
Scott Graham74e0a4c2018-06-12 16:01:49 -070022 command = ninja -t msvc -- $ld /nologo /OUT:${out} /PDB:${out}.pdb @${out}.rsp
timb21d1192016-07-01 12:23:08 -070023 description = LINK ${out}
24 rspfile = ${out}.rsp
25 rspfile_content = ${in_newline} ${libs} ${solibs} ${ldflags}