mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-07-01 22:25:17 +02: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 = ''
|
rpath = ''
|
||||||
|
|
||||||
if host_system == 'windows'
|
if host_system == 'windows'
|
||||||
windows_resource_directory = get_option('windows_resource_directory')
|
windows_resource_directory = '../' + get_option('windows_resource_directory')
|
||||||
subdir(windows_resource_directory)
|
subdir('windows')
|
||||||
global_sources += windows_resources
|
global_sources += windows_resources
|
||||||
global_include_dirs += include_directories(windows_resource_directory)
|
global_include_dirs += include_directories('windows')
|
||||||
else
|
else
|
||||||
subdir('linux')
|
subdir('linux')
|
||||||
rpath = '$ORIGIN/lib'
|
rpath = '$ORIGIN/lib'
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
win = import('windows')
|
win = import('windows')
|
||||||
|
|
||||||
res = files(
|
res = files(
|
||||||
'resource.h',
|
windows_resource_directory + '/resource.h',
|
||||||
'icon.ico',
|
windows_resource_directory + '/icon.ico',
|
||||||
'mkxpz.manifest',
|
windows_resource_directory + '/mkxpz.manifest',
|
||||||
'resource.rc'
|
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