# port_platform — platform-layer implementations of the mirrored 40250 headers # (extension/src/platform//.cpp for extension/src/port//.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) foreach(src IN LISTS MT_PLATFORM_SOURCES) mt_port_apply_defines(${src}) endforeach()