early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

34
externals/vcpkg/ports/nuklear/CMakeLists.txt vendored Executable file
View File

@@ -0,0 +1,34 @@
cmake_minimum_required(VERSION 3.16)
project(Nuklear LANGUAGES C CXX)
option(INSTALL_EXAMPLE "Install the example code" OFF)
option(INSTALL_DEMO "Install the demo code" OFF)
add_library(nuklear INTERFACE)
target_include_directories(nuklear INTERFACE $<INSTALL_INTERFACE:include/nuklear>)
target_compile_definitions(nuklear INTERFACE NK_IMPLEMENTATION)
# Installation
install(
TARGETS nuklear
EXPORT unofficial-nuklear
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
install(FILES "${CMAKE_CURRENT_LIST_DIR}/nuklear.h" DESTINATION "include/nuklear")
install(EXPORT unofficial-nuklear FILE unofficial-nuklear-config.cmake DESTINATION share/unofficial-nuklear)
if (INSTALL_EXAMPLE)
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/example" DESTINATION share/nuklear)
endif()
if (INSTALL_DEMO)
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/demo" DESTINATION share/nuklear)
endif()

29
externals/vcpkg/ports/nuklear/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,29 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Immediate-Mode-UI/Nuklear
REF 6e80e2a646f35be4afc157a932f2936392ec8f74 # accessed on 2021-04-04
SHA512 ce064dff721111749d4056717879f42d3e24bb94655dd2b04c137eb7391d2c90d0b1b95155912c100b537f74fd150aedc48e0ac85eb72963c66e35ac81048323
HEAD_REF master
)
file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
example INSTALL_EXAMPLE
demo INSTALL_DEMO
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS ${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-nuklear)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(INSTALL "${SOURCE_PATH}/Readme.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

25
externals/vcpkg/ports/nuklear/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,25 @@
{
"name": "nuklear",
"version-date": "2021-03-18",
"port-version": 1,
"description": "This is a minimal state immediate mode graphical user interface toolkit written in ANSI C and licensed under public domain",
"homepage": "https://github.com/Immediate-Mode-UI/Nuklear",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"demo": {
"description": "Install demo files"
},
"example": {
"description": "Install example files"
}
}
}