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:
Jon Turney 2018-06-07 18:00:18 +01:00
parent 884f38fe1b
commit 80ce5e0817
8 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1 @@
a = win.compile_resources('rsrc.rc')

View File

@ -0,0 +1 @@
a RCDATA { "a" }

View File

@ -0,0 +1,2 @@
bf = files('rsrc.rc')
b = win.compile_resources(bf)

View File

@ -0,0 +1 @@
b RCDATA { "b" }

View File

@ -0,0 +1,2 @@
cf = files('rsrc.rc')
c = win.compile_resources(cf)

View File

@ -0,0 +1 @@
c RCDATA { "c" }

View File

@ -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)

View File

@ -0,0 +1 @@
main RCDATA { "main" }