Skip to content

Commit e113942

Browse files
authored
[cpp-exiftool] Add version 1.8.0 (microsoft#44860)
1 parent 0c72420 commit e113942

File tree

5 files changed

+66
-0
lines changed

5 files changed

+66
-0
lines changed

ports/cpp-exiftool/CMakeLists.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
cmake_minimum_required(VERSION 3.21)
2+
project(cpp-exiftool LANGUAGES CXX)
3+
4+
file(GLOB src_files "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
5+
file(GLOB public_headers "${CMAKE_CURRENT_SOURCE_DIR}/inc/*.h")
6+
add_library(cpp-exiftool ${src_files})
7+
target_include_directories(cpp-exiftool
8+
PUBLIC
9+
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>"
10+
"$<INSTALL_INTERFACE:include>")
11+
set_target_properties(cpp-exiftool PROPERTIES PUBLIC_HEADER "${public_headers}")
12+
13+
install(TARGETS cpp-exiftool
14+
EXPORT cpp-exiftool-targets
15+
LIBRARY DESTINATION lib
16+
PUBLIC_HEADER DESTINATION include/cpp-exiftool)
17+
18+
install(EXPORT cpp-exiftool-targets
19+
FILE unofficial-cpp-exiftool-config.cmake
20+
DESTINATION share/unofficial-cpp-exiftool
21+
NAMESPACE unofficial::cpp-exiftool::)

ports/cpp-exiftool/portfile.cmake

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
vcpkg_download_distfile(
2+
ARCHIVE
3+
URLS "https://exiftool.org/cpp_exiftool/cpp_exiftool.tar.gz"
4+
FILENAME "cpp_exiftool-${VERSION}.tar.gz"
5+
SHA512 d362e622deeb2a04aa6d694e0c8ffabf610af30cb30c29430811e77b0faa86177fe3409ec228ead9af998a99eb6d3ffa601652c6128a96f20eb60a03e0f64292
6+
)
7+
vcpkg_extract_source_archive(SOURCE_PATH ARCHIVE "${ARCHIVE}")
8+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
9+
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
10+
vcpkg_cmake_install()
11+
vcpkg_copy_pdbs()
12+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
13+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-cpp-exiftool)
14+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/README")

ports/cpp-exiftool/vcpkg.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "cpp-exiftool",
3+
"version": "1.8.0",
4+
"description": "The C++ interface for exiftool provides the source code for a set of objects that allow C++ applications to easily leverage the full power of the exiftool application through a simple interface. This interface handles all the hard work of launching, monitoring, controlling, and communicating with an external exiftool process.",
5+
"homepage": "https://exiftool.org/cpp_exiftool/",
6+
"license": null,
7+
"supports": "linux",
8+
"dependencies": [
9+
{
10+
"name": "vcpkg-cmake",
11+
"host": true
12+
},
13+
{
14+
"name": "vcpkg-cmake-config",
15+
"host": true
16+
}
17+
]
18+
}

versions/baseline.json

+4
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,10 @@
19121912
"baseline": "V2.rc.08",
19131913
"port-version": 0
19141914
},
1915+
"cpp-exiftool": {
1916+
"baseline": "1.8.0",
1917+
"port-version": 0
1918+
},
19151919
"cpp-httplib": {
19161920
"baseline": "0.20.0",
19171921
"port-version": 1

versions/c-/cpp-exiftool.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "c5d61c5f3b1c617ea7a1a7924fadd5acf9df6d64",
5+
"version": "1.8.0",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)