aboutsummaryrefslogtreecommitdiff
path: root/test cases/windows
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-05-19 13:39:06 +0100
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-06-03 21:06:23 +0000
commitac480c185722a7f67711c3f3a8d35f81409ee6a3 (patch)
tree8b398deb204c30450e59c5d18d0430f0350ed61c /test cases/windows
parent7a15214a69891411df6f55a74851d502ef0b24c5 (diff)
downloadmeson-ac480c185722a7f67711c3f3a8d35f81409ee6a3.zip
meson-ac480c185722a7f67711c3f3a8d35f81409ee6a3.tar.gz
meson-ac480c185722a7f67711c3f3a8d35f81409ee6a3.tar.bz2
Extend test_rc_depends_files test case
Extend test_rc_depends_files test case to also cover depfile generation for a resource file generated by a custom_target
Diffstat (limited to 'test cases/windows')
-rw-r--r--test cases/windows/13 resources with custom targets/res/meson.build5
-rw-r--r--test cases/windows/13 resources with custom targets/res/myres.rc.in1
-rw-r--r--test cases/windows/13 resources with custom targets/res/resource.h0
3 files changed, 4 insertions, 2 deletions
diff --git a/test cases/windows/13 resources with custom targets/res/meson.build b/test cases/windows/13 resources with custom targets/res/meson.build
index c15bd92..9797637 100644
--- a/test cases/windows/13 resources with custom targets/res/meson.build
+++ b/test cases/windows/13 resources with custom targets/res/meson.build
@@ -10,9 +10,10 @@ foreach id : [1, 2]
output : 'myres_@0@.rc'.format(id),
command : [rc_writer, '@INPUT@', '@OUTPUT@', files('sample.ico')],
install : false,
- build_always : true)
+ build_always : false)
endforeach
rc_sources += files('myres_static.rc')
-res = win.compile_resources(rc_sources)
+res = win.compile_resources(rc_sources,
+ include_directories: include_directories('.'))
diff --git a/test cases/windows/13 resources with custom targets/res/myres.rc.in b/test cases/windows/13 resources with custom targets/res/myres.rc.in
index 6899bc8..0cff642 100644
--- a/test cases/windows/13 resources with custom targets/res/myres.rc.in
+++ b/test cases/windows/13 resources with custom targets/res/myres.rc.in
@@ -1,3 +1,4 @@
#include<windows.h>
+#include<resource.h>
1 ICON "{icon}"
diff --git a/test cases/windows/13 resources with custom targets/res/resource.h b/test cases/windows/13 resources with custom targets/res/resource.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test cases/windows/13 resources with custom targets/res/resource.h