fix: only link libshiggy if enable_shiggy is true
Some checks are pending
Build (Linux, x86_64) / build-linux (push) Waiting to run
Build (Linux, x86_64) / build-linux-debug (push) Waiting to run
Clang Format / clang-format (push) Waiting to run

This commit is contained in:
Tropical 2026-03-15 01:02:42 -05:00
parent 649bc00fe4
commit 09ac8336a3
2 changed files with 21 additions and 19 deletions

View file

@ -45,15 +45,7 @@ if host_machine.system() == 'linux'
).stdout().strip().split('\n')
endif
shiggy_dep = dependency(
'shiggy',
fallback : ['shiggy', 'shiggy_dep'],
)
client = executable('Minecraft.Client',
client_sources + platform_sources + localisation[1],
include_directories : include_directories('Platform', 'Platform/Linux/Iggy/include'),
dependencies : [
client_dependencies = [
render_dep,
input_dep,
profile_dep,
@ -64,9 +56,27 @@ client = executable('Minecraft.Client',
glu_dep,
thread_dep,
thread_dep,
shiggy_dep,
dependency('zlib'),
],
]
if get_option('enable_vsync')
global_cpp_defs += '-DENABLE_VSYNC'
endif
if get_option('enable_shiggy')
shiggy_dep = dependency(
'shiggy',
fallback : ['shiggy', 'shiggy_dep'],
)
global_cpp_defs += '-D_ENABLEIGGY'
client_dependencies += shiggy_dep
endif
client = executable('Minecraft.Client',
client_sources + platform_sources + localisation[1],
include_directories : include_directories('Platform', 'Platform/Linux/Iggy/include'),
dependencies : client_dependencies,
cpp_args : global_cpp_args + global_cpp_defs + [
'-DUNICODE', '-D_UNICODE',
'-include', meson.current_source_dir() / 'Platform/stdafx.h',

View file

@ -38,14 +38,6 @@ global_cpp_defs = [
'-DDEBUG',
]
if get_option('enable_vsync')
global_cpp_defs += '-DENABLE_VSYNC'
endif
if get_option('enable_iggy')
global_cpp_defs += '-D_ENABLEIGGY'
endif
if host_machine.system() == 'linux'
global_cpp_defs += [
'-Dlinux',