- test/: bgfx/Godot render goldens and compare shots nothing reads any more; the Granny oracle result m2-numeric.json moves to oracle/ - formats/: only the .spt sniffer was still linked; it moves into platform/SpeedTreeLib, the rest and tools/map_probe go - bgm/ duplicated Client/BGM byte for byte; tools/root archived root scripts that root.epk already holds; extension/src/proto had no build reference - GEMINI.md duplicated AGENTS.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
1.3 KiB
CMake
24 lines
1.3 KiB
CMake
# port_platform — platform-layer implementations of the mirrored 40250 headers
|
|
# (extension/src/platform/<Lib>/<File>.cpp for extension/src/port/<Lib>/<File>.h). Starts as the empty
|
|
# skeleton generated by platform_stub.py; see docs/PORT-PLAN.md batch 2A. Added from port/CMakeLists.txt
|
|
# so it shares the per-library definitions.
|
|
|
|
file(GLOB_RECURSE MT_PLATFORM_SOURCES CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
|
# Same rule as port_logic: without the embedded interpreter there is no ScriptLib to back
|
|
# (PORT-PLAN 批次 2P step 4 — Windows).
|
|
if(NOT TARGET mtpython)
|
|
list(FILTER MT_PLATFORM_SOURCES EXCLUDE REGEX "/ScriptLib/")
|
|
endif()
|
|
add_library(port_platform STATIC ${MT_PLATFORM_SOURCES})
|
|
target_link_libraries(port_platform PUBLIC port_logic PRIVATE mt3p::freetype xrender::libgr2)
|
|
foreach(src IN LISTS MT_PLATFORM_SOURCES)
|
|
mt_port_apply_defines(${src})
|
|
endforeach()
|
|
# ScriptLib/PythonBoot.cpp is UserInterface's RunMainScript; it sits under ScriptLib only because that is
|
|
# the directory dropped when there is no embedded interpreter. Its `#ifdef _DISTRIBUTE` (__DEBUG__ = 0)
|
|
# has to see the UserInterface library's definitions, not ScriptLib's.
|
|
if(TARGET mtpython)
|
|
set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/ScriptLib/PythonBoot.cpp
|
|
PROPERTY COMPILE_DEFINITIONS ${MT_PORT_DEFINES_UserInterface})
|
|
endif()
|