From 3ceba3d9768490e5043bde1bb285a73f24f23eca Mon Sep 17 00:00:00 2001 From: lriki Date: Wed, 22 Feb 2023 02:48:11 +0900 Subject: [PATCH] [luminoengine] new port (#29668) * wip * wip * wip * wip * fix * fix * fix * desc * fix for guidelines * format * Run x-add-version * Add supports * Default is core only * Default is core only * add version * uwp unsupported * add version * rename port * add version * fix config path * add version --- ports/luminoengine/portfile.cmake | 32 +++++++++++++++++ ports/luminoengine/usage | 4 +++ ports/luminoengine/vcpkg.json | 58 +++++++++++++++++++++++++++++++ versions/baseline.json | 4 +++ versions/l-/luminoengine.json | 9 +++++ 5 files changed, 107 insertions(+) create mode 100644 ports/luminoengine/portfile.cmake create mode 100644 ports/luminoengine/usage create mode 100644 ports/luminoengine/vcpkg.json create mode 100644 versions/l-/luminoengine.json diff --git a/ports/luminoengine/portfile.cmake b/ports/luminoengine/portfile.cmake new file mode 100644 index 0000000000..1a0e78f642 --- /dev/null +++ b/ports/luminoengine/portfile.cmake @@ -0,0 +1,32 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO LuminoEngine/Lumino + REF v0.10.1 + SHA512 f43e48b36a48b5fcce4767de087f9953c905ac0af5522042a93c39ec75e4c9489b8910bc5b2f6fd129ce197309377a14b6eb9177a6ea9db4f5c2e7d1b13a137d + HEAD_REF main +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + engine LUMINO_BUILD_ENGINE +) + +vcpkg_cmake_configure( + SOURCE_PATH + "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -DLUMINO_BUILD_EXAMPLES=OFF + -DLN_BUILD_TESTS=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/lumino) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_copy_pdbs() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + diff --git a/ports/luminoengine/usage b/ports/luminoengine/usage new file mode 100644 index 0000000000..9f6e61fe55 --- /dev/null +++ b/ports/luminoengine/usage @@ -0,0 +1,4 @@ +luminoengine provides CMake targets: + + find_package(Lumino CONFIG REQUIRED) + target_link_libraries(main PRIVATE lumino::Lumino) diff --git a/ports/luminoengine/vcpkg.json b/ports/luminoengine/vcpkg.json new file mode 100644 index 0000000000..adfafbb68c --- /dev/null +++ b/ports/luminoengine/vcpkg.json @@ -0,0 +1,58 @@ +{ + "name": "luminoengine", + "version": "0.10.1", + "description": "C++17 games and visualization toolkit.", + "homepage": "https://github.com/LuminoEngine/Lumino", + "license": "MIT", + "supports": "x64 & windows & !uwp", + "dependencies": [ + "gtest", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "engine": { + "description": "Make engine module.", + "dependencies": [ + "box2d", + "bullet3", + { + "name": "freetype", + "features": [ + "png", + "zlib" + ] + }, + "glad", + "glfw3", + "glslang", + { + "name": "imgui", + "features": [ + "docking-experimental" + ] + }, + "libogg", + "libpng", + "libvorbis", + "nanovg", + "openal-soft", + "pcre2", + "spirv-cross", + "stb", + "tinygltf", + "tinyobjloader", + "toml11", + "vulkan-headers", + "yaml-cpp", + "zlib" + ] + } + } +} diff --git a/versions/baseline.json b/versions/baseline.json index 6795577e84..99db366608 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4824,6 +4824,10 @@ "baseline": "3.0.0", "port-version": 1 }, + "luminoengine": { + "baseline": "0.10.1", + "port-version": 0 + }, "lunasvg": { "baseline": "2.3.1", "port-version": 0 diff --git a/versions/l-/luminoengine.json b/versions/l-/luminoengine.json new file mode 100644 index 0000000000..739592bf08 --- /dev/null +++ b/versions/l-/luminoengine.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "e82d1c7a586546412c2ab3d121e72aaf54df7bb1", + "version": "0.10.1", + "port-version": 0 + } + ] +}