mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 14:19:01 +08:00
09103d12a0
* [wxwidgets] move setup.h to include Also remove lib/mswu and debug/lib/mswud. They only contain setup.h. Fixes #3180. Closes #4251. * [wxwidgets] remove include/msvc directory The only thing in include/msvc is include/msvc/wx/setup.h which is a "wrapper" around the real setup.h. The wrapper setup.h is hard-coded to include the real setup.h from lib but since the real setup.h is now in include/wx the wrapper has become useless. * [wxwidgets] Fix osx build. Slight modernization.
55 lines
1.8 KiB
CMake
55 lines
1.8 KiB
CMake
include(vcpkg_common_functions)
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO wxWidgets/wxWidgets
|
|
REF v3.1.1
|
|
SHA512 f6d8974e2f48bae7e96a8938df3ad5efc403036c1dcbe2b48edd276ee7923802ba3e95e3f3bd9db17985e427b8e4f78950df0cbba83ae99d508ed04633816c95
|
|
HEAD_REF master
|
|
PATCHES disable-platform-lib-dir.patch
|
|
)
|
|
|
|
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
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
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()
|
|
|
|
# Handle copyright
|
|
file(COPY ${SOURCE_PATH}/docs/licence.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/wxwidgets)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/wxwidgets/licence.txt ${CURRENT_PACKAGES_DIR}/share/wxwidgets/copyright)
|
|
|
|
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)
|