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

View File

@@ -0,0 +1,22 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 74b9ffb..6af4645 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,7 @@ LIST(APPEND GHERKIN_SRS
)
add_library(gherkin ${GHERKIN_SRS})
-target_include_directories(gherkin PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include;${CMAKE_CURRENT_SOURCE_DIR}/src>")
+target_include_directories(gherkin PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include;${CMAKE_CURRENT_SOURCE_DIR}/src>" "$<INSTALL_INTERFACE:include/gherkin-c>")
if (BUILD_GHERKIN_TESTS)
LIST(APPEND GENERATE_TOKEN
@@ -96,7 +96,7 @@ if (BUILD_GHERKIN_TESTS)
ENDFOREACH()
endif()
-set(include_install_dir "include")
+set(include_install_dir "include/gherkin-c")
set(lib_install_dir "lib/")
set(bin_install_dir "bin/")
set(config_install_dir "lib/cmake/")

View File

@@ -0,0 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3227bf5..74b9ffb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -131,7 +131,3 @@ install(
# NAMESPACE "${namespace}"
# DESTINATION "${config_install_dir}")
-add_custom_target(install_${PROJECT_NAME}
- $(MAKE) install
- DEPENDS gherkin
- COMMENT "Installing ${PROJECT_NAME}")

View File

@@ -0,0 +1,23 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO c-libs/gherkin-c
REF dd180edc7d092311f2e90a0c4957061156d39dd3
SHA512 c6b38ab0e7a0fd1061d86b0ff9d9140f8c3d6f15cfc1673e947254c6c03a66d3e6aae5b267b074aa10fa30ba2850190c9e9ea7c12e340e4f8c5575b9bf31bab3
HEAD_REF master
PATCHES
fix-install-error.patch
fix-include-path.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_GHERKIN_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/gherkin-c" RENAME copyright)

12
externals/vcpkg/ports/gherkin-c/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,12 @@
{
"name": "gherkin-c",
"version-date": "2019-10-07",
"port-version": 3,
"description": "Gherkin parser/compiler in C",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}