Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions ports/taglib/CONTROL

This file was deleted.

26 changes: 26 additions & 0 deletions ports/taglib/msvc-disable-deprecated-warnings.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5fc91cc6..6f57e4ee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,10 +58,17 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
endif()

-if(MSVC AND ENABLE_STATIC_RUNTIME)
- foreach(flag_var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
- string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
- endforeach(flag_var)
+if(MSVC)
+ if(ENABLE_STATIC_RUNTIME)
+ foreach(flag_var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
+ string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
+ endforeach(flag_var)
+ endif()
+ # Disable warnings for internal invocations of API functions
+ # that have been marked with TAGLIB_DEPRECATED
+ # https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996")
endif()

# Read version information from file taglib/toolkit/taglib.h into variables
15 changes: 8 additions & 7 deletions ports/taglib/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO taglib/taglib
REF 4c14571647e3391dd8f59473903abc44707b4f1b
SHA512 2619013e38de4afce58d2c8a8fcb2fc34aeb4006c0657a942cb035a5b79ac1438609f89c31bc631b299eb270ac90f2d222c0ddeeb8151803cf7cda15ab3282b4
REF v1.12
SHA512 63c96297d65486450908bda7cc1583ec338fa5a56a7c088fc37d6e125e1ee76e6d20343556a8f3d36f5b7e5187c58a5d15be964c996e3586ea1438910152b1a6
HEAD_REF master
PATCHES msvc-disable-deprecated-warnings.patch
)

if(VCPKG_CRT_LINKAGE STREQUAL static)
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
set(BUILD_SHARED_LIBS OFF)
else()
elseif(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
set(BUILD_SHARED_LIBS ON)
endif()

if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
set(WINRT_OPTIONS -DHAVE_VSNPRINTF=1 -DPLATFORM_WINRT=1)
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} /wd4996")
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} /wd4996")
endif()

vcpkg_configure_cmake(
Expand All @@ -26,6 +25,8 @@ vcpkg_configure_cmake(

vcpkg_install_cmake()

vcpkg_fixup_pkgconfig()

# remove the debug/include files
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

Expand All @@ -39,4 +40,4 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()

vcpkg_copy_pdbs()
vcpkg_copy_pdbs()
10 changes: 10 additions & 0 deletions ports/taglib/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "taglib",
"version-semver": "1.12.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JonLiu1993 is port-version: 1 needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the docs 1.12.0-yyyymmdd precedes 1.12.0. But someone else should confirm this.

https://vcpkg.readthedocs.io/en/latest/specifications/versioning/#2-specifying-package-versions

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Be-ing ,If we update the version, we will delete the port-version. If we modify the BUG or other changes, we will add the port-version: 1. If the port-version already exists, we will increment it by 1 each time we modify it.

"description": "TagLib Audio Meta-Data Library",
"homepage": "https://taglib.org/",
"license": "LGPL-2.1 OR MPL-1.1",
"dependencies": [
"zlib"
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5713,7 +5713,7 @@
"port-version": 0
},
"taglib": {
"baseline": "1.12.0-20210123",
"baseline": "1.12.0",
"port-version": 0
},
"taocpp-json": {
Expand Down
5 changes: 5 additions & 0 deletions versions/t-/taglib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c4559ad74a4b1757cc6f7b11abce3b6c4cab66c7",
"version-semver": "1.12.0",
"port-version": 0
},
{
"git-tree": "e9d856fb23e6cf5ad4b86f2098549ba88098a0cb",
"version-string": "1.12.0-20210123",
Expand Down