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.
pull/3715/head
Jon Turney 7 years ago
parent 884f38fe1b
commit 80ce5e0817
  1. 1
      test cases/windows/16 resource scripts with duplicate filenames/a/meson.build
  2. 1
      test cases/windows/16 resource scripts with duplicate filenames/a/rsrc.rc
  3. 2
      test cases/windows/16 resource scripts with duplicate filenames/b/meson.build
  4. 1
      test cases/windows/16 resource scripts with duplicate filenames/b/rsrc.rc
  5. 2
      test cases/windows/16 resource scripts with duplicate filenames/c/meson.build
  6. 1
      test cases/windows/16 resource scripts with duplicate filenames/c/rsrc.rc
  7. 16
      test cases/windows/16 resource scripts with duplicate filenames/meson.build
  8. 1
      test cases/windows/16 resource scripts with duplicate filenames/rsrc.rc

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

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

@ -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)
Loading…
Cancel
Save