feat: windows64 iggy support

This commit is contained in:
Tropical
2026-04-11 14:56:17 -05:00
parent 7adc6c4788
commit 8d3f8dea3a
3 changed files with 125 additions and 117 deletions

BIN
libs/iggy_w64.dll Normal file

Binary file not shown.

BIN
libs/iggy_w64.lib Normal file

Binary file not shown.

View File

@@ -3,13 +3,15 @@ project('shiggy', 'c',
meson_version: '>= 1.1.0'
)
pymod = import('python')
python = pymod.find_installation('python3', required: true)
ar = find_program('ar')
cc = meson.get_compiler('c')
iggy_object_files = [
if host_machine.system() == 'linux'
pymod = import('python')
python = pymod.find_installation('python3', required: true)
ar = find_program('ar')
iggy_object_files = [
'ORBIS_rrAtomics.obj',
'ORBIS_rrCpu.obj',
'ORBIS_rrThreads.obj',
@@ -86,14 +88,14 @@ iggy_object_files = [
'swf_state.obj',
'triangulate_ears.obj',
'zlib.obj',
]
]
patched_object_files = []
foreach file : iggy_object_files
patched_object_files = []
foreach file : iggy_object_files
patched_object_files += file.replace('.obj', '.o')
endforeach
endforeach
unpacked_objects = custom_target(
unpacked_objects = custom_target(
'unpack-archive',
input: meson.project_source_root() / 'libs' / 'libiggy_orbis.a',
output: iggy_object_files,
@@ -103,9 +105,9 @@ unpacked_objects = custom_target(
'@INPUT@'
],
install: false,
)
)
patched_relocations = custom_target(
patched_relocations = custom_target(
'patch-relocations',
input: unpacked_objects,
output: patched_object_files,
@@ -117,13 +119,19 @@ patched_relocations = custom_target(
'@INPUT@', # The extracted .obj files
],
install: false,
)
)
shiggy_dep = declare_dependency(
link_with: static_library(
'shiggy',
shiggy_dep = declare_dependency(
link_with: static_library('shiggy',
meson.project_source_root() / 'src' / 'shims.c',
include_directories: include_directories('include'),
objects: patched_relocations,
)
)
)
elif host_machine.system() == 'windows'
shiggy_dep = declare_dependency(
dependencies: cc.find_library('iggy_w64',
dirs: [meson.project_source_root() / 'libs']
)
)
endif