4jcraft/targets/minecraft/meson.build
Tropical abeead819e
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
rework build system dependencies
2026-04-10 02:49:30 -05:00

34 lines
1 KiB
Meson

# Source list lives in sources.txt and is regenerated by
# scripts/list_sources.py whenever files are added or removed. Reading
# the committed file means meson reconfigures only when the list itself
# changes, which is what we want.
fs = import('fs')
minecraft_sources = files(fs.read('sources.txt').strip().split('\n'))
crypto_dep = dependency('libcrypto') # for MD5 in Hasher.cpp on Linux
lib_minecraft = static_library('minecraft',
minecraft_sources,
dependencies : [
dependency('libcrypto'), # for MD5 in Hasher.cpp on Linux
dependency('zlib'),
dependency('glm'),
nbt_dep,
java_dep,
util_dep,
assets_localisation_dep,
platform_sound_dep,
platform_renderer_dep,
platform_input_dep,
platform_profile_dep,
platform_storage_dep,
platform_fs_dep,
platform_thread_dep,
],
include_directories : include_directories('..'),
cpp_args : global_cpp_args + global_cpp_defs,
)
minecraft_dep = declare_dependency(link_with : lib_minecraft)