aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/windows/5 resources/res
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/windows/5 resources/res')
-rw-r--r--meson/test cases/windows/5 resources/res/dummy.c0
-rw-r--r--meson/test cases/windows/5 resources/res/meson.build10
-rw-r--r--meson/test cases/windows/5 resources/res/myres.rc4
-rw-r--r--meson/test cases/windows/5 resources/res/sample.icobin0 -> 9662 bytes
4 files changed, 14 insertions, 0 deletions
diff --git a/meson/test cases/windows/5 resources/res/dummy.c b/meson/test cases/windows/5 resources/res/dummy.c
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/meson/test cases/windows/5 resources/res/dummy.c
diff --git a/meson/test cases/windows/5 resources/res/meson.build b/meson/test cases/windows/5 resources/res/meson.build
new file mode 100644
index 000000000..74e0778d2
--- /dev/null
+++ b/meson/test cases/windows/5 resources/res/meson.build
@@ -0,0 +1,10 @@
+win = import('windows')
+
+res = win.compile_resources('myres.rc',
+ depend_files: 'sample.ico',
+ include_directories : inc,
+ args : [['-DFOO'], '-DBAR'])
+
+# test that with MSVC tools, LIB/LINK invokes CVTRES with correct /MACHINE
+static_library('reslib', res, 'dummy.c')
+shared_library('shreslib', res, 'dummy.c')
diff --git a/meson/test cases/windows/5 resources/res/myres.rc b/meson/test cases/windows/5 resources/res/myres.rc
new file mode 100644
index 000000000..802bc7b45
--- /dev/null
+++ b/meson/test cases/windows/5 resources/res/myres.rc
@@ -0,0 +1,4 @@
+#include<windows.h>
+#include"resource.h"
+
+ICON_ID ICON "sample.ico"
diff --git a/meson/test cases/windows/5 resources/res/sample.ico b/meson/test cases/windows/5 resources/res/sample.ico
new file mode 100644
index 000000000..24bd3d9e9
--- /dev/null
+++ b/meson/test cases/windows/5 resources/res/sample.ico
Binary files differ