Test for Windows resource compilation reusing the same script name
Extended from the test case in #3575. This exercises File objects and string filenames for the same resource script filename at different paths.
This commit is contained in:
parent
884f38fe1b
commit
80ce5e0817
|
@ -0,0 +1 @@
|
||||||
|
a = win.compile_resources('rsrc.rc')
|
|
@ -0,0 +1 @@
|
||||||
|
a RCDATA { "a" }
|
|
@ -0,0 +1,2 @@
|
||||||
|
bf = files('rsrc.rc')
|
||||||
|
b = win.compile_resources(bf)
|
|
@ -0,0 +1 @@
|
||||||
|
b RCDATA { "b" }
|
|
@ -0,0 +1,2 @@
|
||||||
|
cf = files('rsrc.rc')
|
||||||
|
c = win.compile_resources(cf)
|
|
@ -0,0 +1 @@
|
||||||
|
c RCDATA { "c" }
|
|
@ -0,0 +1,16 @@
|
||||||
|
project('foobar', 'c')
|
||||||
|
|
||||||
|
win = import('windows')
|
||||||
|
|
||||||
|
subdir('a')
|
||||||
|
subdir('b')
|
||||||
|
subdir('c')
|
||||||
|
|
||||||
|
main = win.compile_resources('rsrc.rc')
|
||||||
|
|
||||||
|
# these make the resource compilation a dependency of something which is built
|
||||||
|
# by default
|
||||||
|
static_library('libmain', main)
|
||||||
|
static_library('liba', a)
|
||||||
|
static_library('libb', b)
|
||||||
|
static_library('libc', c)
|
|
@ -0,0 +1 @@
|
||||||
|
main RCDATA { "main" }
|
Loading…
Reference in New Issue