Edit meson scripts to compile for Android

This commit is contained in:
ItzVladik
2026-04-05 08:18:29 +00:00
parent 91923d445a
commit 1ea1801271
5 changed files with 86 additions and 10 deletions
+9 -1
View File
@@ -64,8 +64,16 @@ lib_minecraft = static_library('minecraft',
cpp_args : global_cpp_args + global_cpp_defs,
)
_inc_dir = '../../' / inc_dir
zlib_dep = dependency('zlib')
crypto_dep = dependency('libcrypto') # for MD5 in Hasher.cpp on Linux
if host_machine.system() == 'android'
crypto_dep = declare_dependency(
dependencies: cc.find_library('crypto', dirs: lib_dir, required: true ),
include_directories: _inc_dir)
else
crypto_dep = dependency('libcrypto') # for MD5 in Hasher.cpp on Linux
endif
minecraft_dep = declare_dependency(
link_with : lib_minecraft,