Add opt-in native Modern UI foundation and first desktop flow (by Codex)
This commit is contained in:
1 parent
a4a37f1cb2
commit
11a6356c1e
42 files changed
+5333
-9
No files matched your search
@@ -61,10 +61,22 @@ foreach(component editor_json editor_http editor_images editor_svg editor_xml)
|
||||
endforeach()
|
||||
file(APPEND "${CMAKE_BINARY_DIR}/editor-dependencies.json" "}\n")
|
||||
|
||||
add_library(bmh_editor_core STATIC archive.cpp world.cpp session.cpp comparison.cpp regulations.cpp images.cpp options.cpp mcp.cpp)
|
||||
add_library(bmh_asset_io STATIC archive.cpp images.cpp)
|
||||
target_include_directories(bmh_asset_io PUBLIC ..)
|
||||
target_link_libraries(bmh_asset_io PUBLIC nlohmann_json::nlohmann_json bmh_content
|
||||
PRIVATE bmh_miniz ${BMH_SDL_TARGET} SDL2_image::SDL2_image-static lunasvg::lunasvg pugixml::pugixml)
|
||||
if(MSVC)
|
||||
target_compile_options(bmh_asset_io PRIVATE /W4 /utf-8)
|
||||
else()
|
||||
target_compile_options(bmh_asset_io PRIVATE -Wall -Wextra -Wpedantic)
|
||||
endif()
|
||||
if(NOT OPENBMH_BUILD_EDITOR)
|
||||
return()
|
||||
endif()
|
||||
add_library(bmh_editor_core STATIC world.cpp session.cpp comparison.cpp regulations.cpp options.cpp mcp.cpp)
|
||||
target_compile_definitions(bmh_editor_core PUBLIC OPENBMH_EDITOR_VERSION="${OPENBMH_EDITOR_VERSION}")
|
||||
target_include_directories(bmh_editor_core PUBLIC .. ${editor_http_SOURCE_DIR})
|
||||
target_link_libraries(bmh_editor_core PUBLIC nlohmann_json::nlohmann_json bmh_content
|
||||
target_link_libraries(bmh_editor_core PUBLIC bmh_asset_io nlohmann_json::nlohmann_json bmh_content
|
||||
PRIVATE bmh_miniz ${BMH_SDL_TARGET} SDL2_image::SDL2_image-static lunasvg::lunasvg pugixml::pugixml)
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(bmh_editor_core PUBLIC Threads::Threads)
|
||||
|
||||
Reference in new issue
Block a user