Skip to content

Commit c96de98

Browse files
committed
[clip] Add version 1.10.0
1 parent f993fc4 commit c96de98

File tree

5 files changed

+85
-0
lines changed

5 files changed

+85
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 79f7074..32e284a 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -5,6 +5,8 @@ cmake_minimum_required(VERSION 3.15)
6+
7+
project(clip LANGUAGES CXX)
8+
9+
+include(GNUInstallDirs)
10+
+
11+
set(CMAKE_CXX_STANDARD 11)
12+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
13+
14+
@@ -25,7 +27,8 @@ if(UNIX AND NOT APPLE)
15+
option(CLIP_X11_WITH_PNG "Compile with libpng to support copy/paste image in png format" on)
16+
endif()
17+
18+
-add_library(clip clip.cpp)
19+
+add_library(clip STATIC clip.cpp)
20+
+target_include_directories(clip PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
21+
22+
if(CLIP_ENABLE_IMAGE)
23+
target_sources(clip PRIVATE image.cpp)
24+
@@ -107,8 +110,6 @@ if(CLIP_TESTS)
25+
endif()
26+
27+
if(CLIP_INSTALL)
28+
- include(GNUInstallDirs)
29+
-
30+
install(
31+
FILES clip.h
32+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}

ports/clip/portfile.cmake

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO dacap/clip
4+
REF v1.10
5+
SHA512 a29531ef276650807233b635ecceaf408147e4e263268eaf8237d74c9a7641d28cda5c6d1eaad4dbe634e720a5969dd6cc82aaeffbc36e0c9598ded31e419ea6
6+
PATCHES
7+
"fix-install-header-and-force-static-compilation.patch")
8+
9+
vcpkg_cmake_configure(
10+
SOURCE_PATH "${SOURCE_PATH}"
11+
OPTIONS
12+
-DCLIP_ENABLE_LIST_FORMATS=ON
13+
-DCLIP_EXAMPLES=OFF
14+
-DCLIP_TESTS=OFF
15+
-DCLIP_X11_WITH_PNG=ON)
16+
vcpkg_cmake_install()
17+
vcpkg_copy_pdbs()
18+
vcpkg_cmake_config_fixup(PACKAGE_NAME clip CONFIG_PATH "lib/cmake/clip")
19+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")

ports/clip/vcpkg.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "clip",
3+
"version": "1.10.0",
4+
"description": "Cross-platform C++ library to copy/paste clipboard content.",
5+
"homepage": "https://github.com/dacap/clip",
6+
"license": "MIT",
7+
"dependencies": [
8+
{
9+
"name": "libpng",
10+
"host": true
11+
},
12+
{
13+
"name": "vcpkg-cmake",
14+
"host": true
15+
},
16+
{
17+
"name": "vcpkg-cmake-config",
18+
"host": true
19+
}
20+
]
21+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,10 @@
17801780
"baseline": "2.5.1",
17811781
"port-version": 0
17821782
},
1783+
"clip": {
1784+
"baseline": "1.10.0",
1785+
"port-version": 0
1786+
},
17831787
"clipboardxx": {
17841788
"baseline": "2022-02-04",
17851789
"port-version": 0

versions/c-/clip.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "1cfc2096ad020779215b90efda192b91c7923a4d",
5+
"version": "1.10.0",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)