meson basic intergration

This commit is contained in:
JuiceyDev
2026-03-06 01:59:57 +01:00
parent dd43a13f74
commit b04a2369b6
10 changed files with 260 additions and 12 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ void MemSect(int sect);
// FIXME: Move and port to ../Minecraft.Client/Linux
#include "../../Minecraft.Client/Platform/Linux/Linux_App.h"
#include "../../Minecraft.Client/Platform/OrbisMedia/strings.h"
#include "../../Minecraft.Client/Platform/Windows64/Sentient/SentientTelemetryCommon.h"
#include "../../Minecraft.Client/Platform/Xbox/Sentient/SentientTelemetryCommon.h"
// #include "../../Minecraft.Client/Platform/Windows64/Sentient/MinecraftTelemetry.h"
#else
#include "../../Minecraft.Client/Platform/Orbis/Orbis_App.h"
+30
View File
@@ -0,0 +1,30 @@
# GET IT ALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
# Note: the files below are commented-out in CMakeLists.txt (missing headers or
# unfinished ports) and must be excluded from the build.
_world_sources_raw = run_command(
'sh', '-c',
'find "' + meson.current_source_dir() + '" -name "*.cpp"' +
' ! -name "DurangoStats.cpp"' +
' ! -name "MemoryChunkStorage.cpp"' +
' ! -name "MemoryLevelStorage.cpp"' +
' ! -name "MemoryLevelStorageSource.cpp"' +
' ! -name "NbtSlotFile.cpp"' +
' ! -name "SkyIslandDimension.cpp"' +
' ! -name "ZonedChunkStorage.cpp"' +
' ! -name "ZoneFile.cpp"' +
' ! -name "ZoneIo.cpp"',
check : true,
).stdout().strip().split('\n')
lib_world = static_library('Minecraft.World',
_world_sources_raw,
include_directories : include_directories('Build', 'Build/x64headers'),
cpp_args : global_cpp_args + global_cpp_defs + [
'-include', meson.current_source_dir() / 'Build/stdafx.h',
],
)
world_dep = declare_dependency(
link_with : lib_world,
include_directories : include_directories('Build/x64headers'),
)