Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
build: embed version information in .dll
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Apr 26, 2024
1 parent 8447c0f commit 08e5c30
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ null_dep = dependency('', required: false)
dep_mathlibrary = c_compiler.find_library('m', static: staticdeps, required : false)

# autogenerated files
resources = []
exe_resources = []
dll_resources = []
python3 = find_program('python3', required: true)
git = find_program('git', required: true)

Expand Down Expand Up @@ -50,18 +51,18 @@ link_args = []
if host_machine.system() == 'windows'
windows = import('windows')

resources = [
windows.compile_resources(version_rc),
windows.compile_resources(icon_rc),
]
version_resource = windows.compile_resources(version_rc)
icon_resource = windows.compile_resources(icon_rc)
exe_resources = [version_resource, icon_resource]
dll_resources = [version_resource]

link_args += ['-static']
endif

exe_sources = [
init,
'src/main_exe.c',
resources,
exe_resources,
]

dll_sources = [
Expand Down Expand Up @@ -102,6 +103,7 @@ dll_sources = [
'src/specific/s_input.c',
'src/specific/s_music_mm.c',
'src/specific/s_music_pauld.c',
dll_resources,
]

dependencies = [
Expand Down

0 comments on commit 08e5c30

Please sign in to comment.