mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 01:49:23 +08:00
d6285bc24b
* [expat] Update the version to 2.2.9(support uwp) * [readosm] Fix expat.lib cannot be found * Remove expat:arm-uwp and expat:x64-uwp from fail list in ci.baseline.txt * [apr-util,io2d,skia] Fix expat cannot be found and also update expat * [many ports] Add supports and fix the regressions * Fix new regressions * Fix typo * [io2d] Update expat patch * [io2d,libkml,skia] Fix expat cannot find and also fix typo * [expat] Remove usage * [libkml,vtk] Update expat patch and fix static build * [wxwidgets] Fix static build caused by expat cannot found * Update as review suggestion * Add Port-Version * Remove evpp:x64-osx=fail from ci.baseline.txt * [wxwidgest] Remove unnecessary spaces * [itk] Fix expat cannot be found * fix cmake test port * [wxwidgets] Update Port-Version Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
77 lines
2.3 KiB
CMake
77 lines
2.3 KiB
CMake
vcpkg_fail_port_install(ON_TARGET "uwp")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO wxWidgets/wxWidgets
|
|
REF v3.1.4
|
|
SHA512 108e35220de10afbfc58762498ada9ece0b3166f56a6d11e11836d51bfbaed1de3033c32ed4109992da901fecddcf84ce8a1ba47303f728c159c638dac77d148
|
|
HEAD_REF master
|
|
PATCHES
|
|
disable-platform-lib-dir.patch
|
|
fix-stl-build-vs2019-16.6.patch
|
|
fix-expat.patch
|
|
)
|
|
|
|
set(OPTIONS)
|
|
if(VCPKG_TARGET_IS_OSX)
|
|
set(OPTIONS -DCOTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES=9999)
|
|
endif()
|
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64 OR VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
|
set(OPTIONS
|
|
-DwxUSE_OPENGL=OFF
|
|
-DwxUSE_STACKWALKER=OFF
|
|
)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DwxUSE_REGEX=builtin
|
|
-DwxUSE_ZLIB=sys
|
|
-DwxUSE_EXPAT=sys
|
|
-DwxUSE_LIBJPEG=sys
|
|
-DwxUSE_LIBPNG=sys
|
|
-DwxUSE_LIBTIFF=sys
|
|
-DwxUSE_STL=ON
|
|
-DwxBUILD_DISABLE_PLATFORM_LIB_DIR=ON
|
|
${OPTIONS}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES wxrc AUTO_CLEAN)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
file(GLOB DLLS "${CURRENT_PACKAGES_DIR}/lib/*.dll")
|
|
if(DLLS)
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)
|
|
foreach(DLL ${DLLS})
|
|
get_filename_component(N "${DLL}" NAME)
|
|
file(RENAME ${DLL} ${CURRENT_PACKAGES_DIR}/bin/${N})
|
|
endforeach()
|
|
endif()
|
|
file(GLOB DLLS "${CURRENT_PACKAGES_DIR}/debug/lib/*.dll")
|
|
if(DLLS)
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
foreach(DLL ${DLLS})
|
|
get_filename_component(N "${DLL}" NAME)
|
|
file(RENAME ${DLL} ${CURRENT_PACKAGES_DIR}/debug/bin/${N})
|
|
endforeach()
|
|
endif()
|
|
|
|
# do the copy pdbs now after the dlls got moved to the expected /bin folder above
|
|
vcpkg_copy_pdbs()
|
|
|
|
if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/mswu/wx/setup.h)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/mswu/wx/setup.h ${CURRENT_PACKAGES_DIR}/include/wx/setup.h)
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/mswu)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/mswud)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/msvc)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/docs/licence.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |