Skip to content

Commit 050e71d

Browse files
authored
Remove references to CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS (#5937)
* [various ports] remove references to CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS * [alac,benchmark,capnproto] Fix check_linkage call * [fastlz] Fix SHA512 * [coroutine] Fix dynamic build * [folly] Find double-conversion * [gamma] Use vcpkg_from_github * [librsync] Enable static builds * [netcdf-cxx4] Fix SHA512 * [octomap] Fix static build * [tidy-html5] Fix static build * [various ports] remove custom messages for shared/static builds, modernize some scripts in the meantime * [folly] Use ras0219's fix for link paths * [octomap] Fix exported targets * [uvatlas] Set tool download SHA512 * [duktape+python2] fix portfile to call configure with correct python version, manage python2 also outside win32 * [suitesparse] osx fix * [gtkmm] Call vcpkg_check_linkage after including vcpkg functions * [duktape] Resolve conflicts * [duktape] FIxed typo in Python paths * [wangle] Find zlib * [openssl-uwp] Fix SHA512 * [glib] Allow static builds on non-Windows * [suitesparse] Fix build on Windows * [multiple ports] Bump CONTROL version * [multiple ports] Fix description indent * [directxtk] Fix CONTROL file * [bde,duktape,qpid-proton] Build packages with python2 installed * [binn] remove CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS * [gdal,live555,uriparser] Fix regressions * [live555] Update to 2019.04.24
1 parent b72f36e commit 050e71d

413 files changed

Lines changed: 2400 additions & 2791 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ports/3fd/CONTROL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Source: 3fd
2-
Version: 2.6.2-2
2+
Version: 2.6.2-3
33
Description: C++ Framework For Fast Development
44
Build-Depends: boost-lockfree (windows), boost-regex (windows), poco (windows), sqlite3, rapidxml

ports/3fd/portfile.cmake

Lines changed: 105 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,105 @@
1-
include(vcpkg_common_functions)
2-
3-
# Check architecture:
4-
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
5-
set(BUILD_ARCH "Win32")
6-
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
7-
set(BUILD_ARCH "x64")
8-
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
9-
set(BUILD_ARCH "ARM")
10-
else()
11-
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
12-
endif()
13-
14-
# Check library linkage:
15-
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
16-
message("3FD only supports static library linkage. Building static.")
17-
set(VCPKG_LIBRARY_LINKAGE static)
18-
endif()
19-
20-
# Check CRT linkage:
21-
if (VCPKG_CRT_LINKAGE STREQUAL "static")
22-
message(FATAL_ERROR "3FD can only be built with dynamic linkage to CRT!")
23-
endif()
24-
25-
# Get source code:
26-
vcpkg_from_github(
27-
OUT_SOURCE_PATH SOURCE_PATH
28-
REPO faburaya/3FD
29-
REF v2.6.2
30-
SHA512 a2444cc07d8741540c6071ac59bc8c63785db52e412a843aa18a5dfa0144b5001d428e44bcb520238e3d476440bc74526343f025005f05d534e732645f59cbe0
31-
HEAD_REF master
32-
PATCHES
33-
"${CMAKE_CURRENT_LIST_DIR}/remove-seekpos.patch"
34-
"${CMAKE_CURRENT_LIST_DIR}/DataException.patch"
35-
"${CMAKE_CURRENT_LIST_DIR}/RapidXML.patch"
36-
)
37-
38-
# Copy the sources to ensure a clean, out-of-source build
39-
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-all)
40-
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-all)
41-
file(COPY ${SOURCE_PATH} DESTINATION ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-all)
42-
get_filename_component(LAST_DIR_NAME "${SOURCE_PATH}" NAME)
43-
set(SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-all/${LAST_DIR_NAME}")
44-
45-
# Build:
46-
if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") # UWP:
47-
vcpkg_build_msbuild(
48-
USE_VCPKG_INTEGRATION
49-
PROJECT_PATH ${SOURCE_PATH}/3FD/3FD.WinRT.UWP.vcxproj
50-
PLATFORM ${BUILD_ARCH}
51-
)
52-
elseif (NOT VCPKG_CMAKE_SYSTEM_NAME) # Win32:
53-
vcpkg_build_msbuild(
54-
USE_VCPKG_INTEGRATION
55-
PROJECT_PATH ${SOURCE_PATH}/3FD/3FD.vcxproj
56-
PLATFORM ${BUILD_ARCH}
57-
TARGET Build
58-
)
59-
else()
60-
message(FATAL_ERROR "Unsupported system: 3FD is not currently ported to VCPKG in ${VCPKG_CMAKE_SYSTEM_NAME}!")
61-
endif()
62-
63-
# Install:
64-
file(GLOB HEADER_FILES LIST_DIRECTORIES false "${SOURCE_PATH}/3FD/*.h")
65-
file(INSTALL
66-
${HEADER_FILES}
67-
DESTINATION ${CURRENT_PACKAGES_DIR}/include/3FD
68-
PATTERN "*_impl*.h" EXCLUDE
69-
PATTERN "*example*.h" EXCLUDE
70-
PATTERN "stdafx.h" EXCLUDE
71-
PATTERN "targetver.h" EXCLUDE
72-
)
73-
74-
file(INSTALL ${SOURCE_PATH}/btree DESTINATION ${CURRENT_PACKAGES_DIR}/include/3FD)
75-
file(INSTALL ${SOURCE_PATH}/OpenCL/CL DESTINATION ${CURRENT_PACKAGES_DIR}/include/3FD)
76-
77-
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/3FD)
78-
file(INSTALL
79-
${SOURCE_PATH}/3FD/3fd-config-template.xml
80-
DESTINATION ${CURRENT_PACKAGES_DIR}/share/3FD
81-
)
82-
83-
if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") # Visual C++, UWP app:
84-
file(INSTALL
85-
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Debug/3FD.WinRT.UWP/3FD.WinRT.UWP.lib
86-
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Debug/3FD.WinRT.UWP/_3FD_WinRT_UWP.pri
87-
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Debug/WinRT.UWP/3FD.WinRT.UWP.pdb
88-
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
89-
)
90-
file(INSTALL
91-
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Release/3FD.WinRT.UWP/3FD.WinRT.UWP.lib
92-
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Release/3FD.WinRT.UWP/_3FD_WinRT_UWP.pri
93-
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Release/WinRT.UWP/3FD.WinRT.UWP.pdb
94-
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
95-
)
96-
else() # Visual C++, Win32 app:
97-
file(INSTALL
98-
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Debug/3FD.lib
99-
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Debug/3FD.pdb
100-
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
101-
)
102-
file(INSTALL
103-
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Release/3FD.lib
104-
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Release/3FD.pdb
105-
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
106-
)
107-
endif()
108-
109-
# Handle copyright
110-
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/3fd RENAME copyright)
111-
file(INSTALL ${SOURCE_PATH}/Acknowledgements.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/3fd)
112-
113-
vcpkg_copy_pdbs()
1+
include(vcpkg_common_functions)
2+
3+
# Check architecture:
4+
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
5+
set(BUILD_ARCH "Win32")
6+
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
7+
set(BUILD_ARCH "x64")
8+
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
9+
set(BUILD_ARCH "ARM")
10+
else()
11+
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
12+
endif()
13+
14+
# Check library linkage:
15+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
16+
17+
# Get source code:
18+
vcpkg_from_github(
19+
OUT_SOURCE_PATH SOURCE_PATH
20+
REPO faburaya/3FD
21+
REF v2.6.2
22+
SHA512 a2444cc07d8741540c6071ac59bc8c63785db52e412a843aa18a5dfa0144b5001d428e44bcb520238e3d476440bc74526343f025005f05d534e732645f59cbe0
23+
HEAD_REF master
24+
PATCHES
25+
"${CMAKE_CURRENT_LIST_DIR}/remove-seekpos.patch"
26+
"${CMAKE_CURRENT_LIST_DIR}/DataException.patch"
27+
"${CMAKE_CURRENT_LIST_DIR}/RapidXML.patch"
28+
)
29+
30+
# Copy the sources to ensure a clean, out-of-source build
31+
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-all)
32+
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-all)
33+
file(COPY ${SOURCE_PATH} DESTINATION ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-all)
34+
get_filename_component(LAST_DIR_NAME "${SOURCE_PATH}" NAME)
35+
set(SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-all/${LAST_DIR_NAME}")
36+
37+
# Build:
38+
if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") # UWP:
39+
vcpkg_build_msbuild(
40+
USE_VCPKG_INTEGRATION
41+
PROJECT_PATH ${SOURCE_PATH}/3FD/3FD.WinRT.UWP.vcxproj
42+
PLATFORM ${BUILD_ARCH}
43+
)
44+
elseif (NOT VCPKG_CMAKE_SYSTEM_NAME) # Win32:
45+
vcpkg_build_msbuild(
46+
USE_VCPKG_INTEGRATION
47+
PROJECT_PATH ${SOURCE_PATH}/3FD/3FD.vcxproj
48+
PLATFORM ${BUILD_ARCH}
49+
TARGET Build
50+
)
51+
else()
52+
message(FATAL_ERROR "Unsupported system: 3FD is not currently ported to VCPKG in ${VCPKG_CMAKE_SYSTEM_NAME}!")
53+
endif()
54+
55+
# Install:
56+
file(GLOB HEADER_FILES LIST_DIRECTORIES false "${SOURCE_PATH}/3FD/*.h")
57+
file(INSTALL
58+
${HEADER_FILES}
59+
DESTINATION ${CURRENT_PACKAGES_DIR}/include/3FD
60+
PATTERN "*_impl*.h" EXCLUDE
61+
PATTERN "*example*.h" EXCLUDE
62+
PATTERN "stdafx.h" EXCLUDE
63+
PATTERN "targetver.h" EXCLUDE
64+
)
65+
66+
file(INSTALL ${SOURCE_PATH}/btree DESTINATION ${CURRENT_PACKAGES_DIR}/include/3FD)
67+
file(INSTALL ${SOURCE_PATH}/OpenCL/CL DESTINATION ${CURRENT_PACKAGES_DIR}/include/3FD)
68+
69+
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/3FD)
70+
file(INSTALL
71+
${SOURCE_PATH}/3FD/3fd-config-template.xml
72+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/3FD
73+
)
74+
75+
if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") # Visual C++, UWP app:
76+
file(INSTALL
77+
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Debug/3FD.WinRT.UWP/3FD.WinRT.UWP.lib
78+
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Debug/3FD.WinRT.UWP/_3FD_WinRT_UWP.pri
79+
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Debug/WinRT.UWP/3FD.WinRT.UWP.pdb
80+
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
81+
)
82+
file(INSTALL
83+
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Release/3FD.WinRT.UWP/3FD.WinRT.UWP.lib
84+
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Release/3FD.WinRT.UWP/_3FD_WinRT_UWP.pri
85+
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Release/WinRT.UWP/3FD.WinRT.UWP.pdb
86+
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
87+
)
88+
else() # Visual C++, Win32 app:
89+
file(INSTALL
90+
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Debug/3FD.lib
91+
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Debug/3FD.pdb
92+
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
93+
)
94+
file(INSTALL
95+
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Release/3FD.lib
96+
${SOURCE_PATH}/3FD/${BUILD_ARCH}/Release/3FD.pdb
97+
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
98+
)
99+
endif()
100+
101+
# Handle copyright
102+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/3fd RENAME copyright)
103+
file(INSTALL ${SOURCE_PATH}/Acknowledgements.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/3fd)
104+
105+
vcpkg_copy_pdbs()

ports/abseil/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN)
66
set(CMAKE_CXX_STANDARD 14)
77

88
set(CMAKE_DEBUG_POSTFIX d)
9-
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
109

1110
if(CMAKE_BUILD_TYPE STREQUAL "Release")
1211
option(INSTALL_HEADERS "Install header files" ON)

ports/abseil/CONTROL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Source: abseil
2-
Version: 2019-04-19
2+
Version: 2019-04-19-1
33
Description: an open-source collection designed to augment the C++ standard library.
44
Abseil is an open-source collection of C++ library code designed to augment the C++ standard library. The Abseil library code is collected from Google's own C++ code base, has been extensively tested and used in production, and is the same code we depend on in our daily coding lives.
55
In some cases, Abseil provides pieces missing from the C++ standard; in others, Abseil provides alternatives to the standard for special needs we've found through usage in the Google code base. We denote those cases clearly within the library code we provide you.

ports/abseil/portfile.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
44
message(FATAL_ERROR "Abseil currently only supports being built for desktop")
55
endif()
66

7+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
8+
79
vcpkg_from_github(
810
OUT_SOURCE_PATH SOURCE_PATH
911
REPO abseil/abseil-cpp

ports/alac-decoder/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ if(MSVC)
2020
add_compile_options(/W4 -D_CRT_SECURE_NO_WARNINGS -DTARGET_OS_WIN32)
2121
endif()
2222

23-
if(BUILD_SHARED_LIBS)
24-
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
25-
endif()
26-
2723
include_directories(.)
2824

2925
add_library(libalac_decoder ${SRCS})

ports/alac-decoder/CONTROL

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Source: alac-decoder
2-
Version: 0.2
3-
Description: ALAC C implementation of a decoder, written from reverse engineering the file format
1+
Source: alac-decoder
2+
Version: 0.2-1
3+
Description: ALAC C implementation of a decoder, written from reverse engineering the file format

ports/alac-decoder/portfile.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
include(vcpkg_common_functions)
2+
3+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4+
25
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/alac_decoder)
36
vcpkg_download_distfile(ARCHIVE
47
URLS "https://distfiles.macports.org/alac_decoder/alac_decoder-0.2.0.tgz"

ports/alac/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ if(MSVC)
3535
add_compile_options(/W4 -D_CRT_SECURE_NO_WARNINGS -DTARGET_OS_WIN32)
3636
endif()
3737

38-
if(BUILD_SHARED_LIBS)
39-
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
40-
endif()
41-
4238
include_directories(. codec convert-utility)
4339

4440
add_library(libalac ${SRCS})

ports/alac/CONTROL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Source: alac
2-
Version: 2017-11-03-c38887c5
2+
Version: 2017-11-03-c38887c5-1
33
Description: The Apple Lossless Audio Codec (ALAC) is a lossless audio codec developed by Apple and deployed on all of its platforms and devices.

0 commit comments

Comments
 (0)