diff options
Diffstat (limited to 'vcpkg/ports/tiny-process-library')
| -rw-r--r-- | vcpkg/ports/tiny-process-library/disable-examples.patch | 14 | ||||
| -rw-r--r-- | vcpkg/ports/tiny-process-library/portfile.cmake | 35 | ||||
| -rw-r--r-- | vcpkg/ports/tiny-process-library/vcpkg.json | 19 |
3 files changed, 68 insertions, 0 deletions
diff --git a/vcpkg/ports/tiny-process-library/disable-examples.patch b/vcpkg/ports/tiny-process-library/disable-examples.patch new file mode 100644 index 0000000..698ab80 --- /dev/null +++ b/vcpkg/ports/tiny-process-library/disable-examples.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8662ba3..040e642 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -42,9 +42,6 @@ if(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + add_compile_options(-std=c++11 -Wall -Wextra) + endif() + +- add_executable(examples examples.cpp) +- target_link_libraries(examples tiny-process-library) +- + install(TARGETS tiny-process-library + EXPORT ${PROJECT_NAME}-config + ARCHIVE DESTINATION lib diff --git a/vcpkg/ports/tiny-process-library/portfile.cmake b/vcpkg/ports/tiny-process-library/portfile.cmake new file mode 100644 index 0000000..be90620 --- /dev/null +++ b/vcpkg/ports/tiny-process-library/portfile.cmake @@ -0,0 +1,35 @@ +if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+
+vcpkg_from_gitlab(
+ GITLAB_URL https://gitlab.com
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO eidheim/tiny-process-library
+ REF v2.0.4
+ SHA512 bbdd268361159b7c64cb60f29afa780ee5e57fa696f0683a55cb9824ec5985c8229a9a8217d2b9ecdd194b9a3acbbd75a1a821392361fbc85b1f6841f40c95db
+ HEAD_REF master
+ PATCHES
+ disable-examples.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_copy_pdbs()
+
+vcpkg_cmake_config_fixup(
+ CONFIG_PATH lib/cmake/tiny-process-library
+)
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug/include"
+ "${CURRENT_PACKAGES_DIR}/debug/share"
+)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/tiny-process-library/vcpkg.json b/vcpkg/ports/tiny-process-library/vcpkg.json new file mode 100644 index 0000000..6562566 --- /dev/null +++ b/vcpkg/ports/tiny-process-library/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "tiny-process-library", + "version": "2.0.4", + "port-version": 3, + "description": "A small platform independent library to create and stop new processes in C++", + "homepage": "https://gitlab.com/eidheim/tiny-process-library/", + "license": "MIT", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |