mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-03-28 14:56:22 +01:00
Support Windows resources outside of repo directory
This commit is contained in:
parent
77d05ed600
commit
631ed45c28
2 changed files with 8 additions and 8 deletions
|
@ -125,10 +125,10 @@ global_include_dirs += include_directories('src', 'binding')
|
|||
rpath = ''
|
||||
|
||||
if host_system == 'windows'
|
||||
windows_resource_directory = get_option('windows_resource_directory')
|
||||
subdir(windows_resource_directory)
|
||||
windows_resource_directory = '../' + get_option('windows_resource_directory')
|
||||
subdir('windows')
|
||||
global_sources += windows_resources
|
||||
global_include_dirs += include_directories(windows_resource_directory)
|
||||
global_include_dirs += include_directories('windows')
|
||||
else
|
||||
subdir('linux')
|
||||
rpath = '$ORIGIN/lib'
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
win = import('windows')
|
||||
|
||||
res = files(
|
||||
'resource.h',
|
||||
'icon.ico',
|
||||
'mkxpz.manifest',
|
||||
'resource.rc'
|
||||
windows_resource_directory + '/resource.h',
|
||||
windows_resource_directory + '/icon.ico',
|
||||
windows_resource_directory + '/mkxpz.manifest',
|
||||
windows_resource_directory + '/resource.rc'
|
||||
)
|
||||
|
||||
windows_resources = win.compile_resources('resource.rc', depend_files: res)
|
||||
windows_resources = win.compile_resources(windows_resource_directory + '/resource.rc', depend_files: res)
|
||||
|
|
Loading…
Add table
Reference in a new issue