mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-25 03:09:30 +01:00
msvc test
This commit is contained in:
parent
e8ef5a89eb
commit
88f8da4af1
BIN
demos/c/program/gfx/semfavicon.ico
Normal file
BIN
demos/c/program/gfx/semfavicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
1
demos/c/program/msvc_resource.rc
Normal file
1
demos/c/program/msvc_resource.rc
Normal file
@ -0,0 +1 @@
|
||||
100 icon "gfx/semfavicon.ico"
|
@ -4,7 +4,7 @@ def write_header(tsk):
|
||||
tsk.outputs[0].write('int abc = 423;\n')
|
||||
bld(rule=write_header, target='b.h', ext_out=['.h'])
|
||||
|
||||
bld.program(
|
||||
tg = bld.program(
|
||||
features = 'aaa',
|
||||
source = 'main.c',
|
||||
includes = '. ..',
|
||||
@ -34,3 +34,6 @@ class foo(waflib.Task.Task):
|
||||
def run(self):
|
||||
self.outputs[0].write('int kik = 343;\n')
|
||||
|
||||
|
||||
if bld.env.CC_NAME == 'msvc':
|
||||
tg.source += ' msvc_resource.rc'
|
||||
|
Loading…
Reference in New Issue
Block a user