Extend test case to cover issue #3999

Extend test case for issue #3575 for Windows resource files with the same
name to cover the case where duplicate outputs exist due to use of
pathnames.

Also Test using file objects as well as literal filenames
pull/4036/head
Jon Turney 7 years ago
parent 9b3671e711
commit 2a3cd335fd
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 5
      test cases/windows/15 resource scripts with duplicate filenames/exe3/meson.build
  2. 6
      test cases/windows/15 resource scripts with duplicate filenames/exe3/src_dll/main.c
  3. 11
      test cases/windows/15 resource scripts with duplicate filenames/exe3/src_dll/version.rc
  4. 3
      test cases/windows/15 resource scripts with duplicate filenames/exe3/src_exe/main.c
  5. 11
      test cases/windows/15 resource scripts with duplicate filenames/exe3/src_exe/version.rc
  6. 5
      test cases/windows/15 resource scripts with duplicate filenames/exe4/meson.build
  7. 6
      test cases/windows/15 resource scripts with duplicate filenames/exe4/src_dll/main.c
  8. 11
      test cases/windows/15 resource scripts with duplicate filenames/exe4/src_dll/version.rc
  9. 3
      test cases/windows/15 resource scripts with duplicate filenames/exe4/src_exe/main.c
  10. 11
      test cases/windows/15 resource scripts with duplicate filenames/exe4/src_exe/version.rc
  11. 2
      test cases/windows/15 resource scripts with duplicate filenames/meson.build

@ -0,0 +1,5 @@
dll_res = win.compile_resources('src_dll/version.rc')
shared_library('lib3', 'src_dll/main.c', dll_res)
exe_res = win.compile_resources('src_exe/version.rc')
executable('exe3', 'src_exe/main.c', exe_res)

@ -0,0 +1,6 @@
#include <windows.h>
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
return TRUE;
}

@ -0,0 +1,11 @@
#include <windows.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
BEGIN
END

@ -0,0 +1,11 @@
#include <windows.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
BEGIN
END

@ -0,0 +1,5 @@
dll_res = win.compile_resources(files('src_dll/version.rc'))
shared_library('lib4', 'src_dll/main.c', dll_res)
exe_res = win.compile_resources(files('src_exe/version.rc'))
executable('exe4', 'src_exe/main.c', exe_res)

@ -0,0 +1,6 @@
#include <windows.h>
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
return TRUE;
}

@ -0,0 +1,11 @@
#include <windows.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
BEGIN
END

@ -0,0 +1,11 @@
#include <windows.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
BEGIN
END

@ -5,6 +5,8 @@ win = import('windows')
subdir('a')
subdir('b')
subdir('c')
subdir('exe3')
subdir('exe4')
main = win.compile_resources('rsrc.rc')

Loading…
Cancel
Save