tim | b21d119 | 2016-07-01 12:23:08 -0700 | [diff] [blame] | 1 | rule cc |
Scott Graham | 74e0a4c | 2018-06-12 16:01:49 -0700 | [diff] [blame] | 2 | command = ninja -t msvc -- $cc /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out} |
tim | b21d119 | 2016-07-01 12:23:08 -0700 | [diff] [blame] | 3 | description = CC ${out} |
| 4 | rspfile = ${out}.rsp |
| 5 | rspfile_content = ${defines} ${includes} ${cflags} ${cflags_c} |
| 6 | deps = msvc |
| 7 | |
| 8 | rule cxx |
Scott Graham | 74e0a4c | 2018-06-12 16:01:49 -0700 | [diff] [blame] | 9 | command = ninja -t msvc -- $cxx /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out} |
tim | b21d119 | 2016-07-01 12:23:08 -0700 | [diff] [blame] | 10 | description = CXX ${out} |
| 11 | rspfile = ${out}.rsp |
| 12 | rspfile_content = ${defines} ${includes} ${cflags} ${cflags_cc} |
| 13 | deps = msvc |
| 14 | |
| 15 | rule alink_thin |
Scott Graham | 74e0a4c | 2018-06-12 16:01:49 -0700 | [diff] [blame] | 16 | command = ninja -t msvc -- $ar /nologo /ignore:4221 /OUT:${out} @${out}.rsp |
tim | b21d119 | 2016-07-01 12:23:08 -0700 | [diff] [blame] | 17 | description = LIB ${out} |
| 18 | rspfile = ${out}.rsp |
Scott Graham | 74e0a4c | 2018-06-12 16:01:49 -0700 | [diff] [blame] | 19 | rspfile_content = ${in_newline} ${libflags} |
tim | b21d119 | 2016-07-01 12:23:08 -0700 | [diff] [blame] | 20 | |
| 21 | rule link |
Scott Graham | 74e0a4c | 2018-06-12 16:01:49 -0700 | [diff] [blame] | 22 | command = ninja -t msvc -- $ld /nologo /OUT:${out} /PDB:${out}.pdb @${out}.rsp |
tim | b21d119 | 2016-07-01 12:23:08 -0700 | [diff] [blame] | 23 | description = LINK ${out} |
| 24 | rspfile = ${out}.rsp |
| 25 | rspfile_content = ${in_newline} ${libs} ${solibs} ${ldflags} |