2017-05-30 16:00:52 +02:00
|
|
|
include(vcpkg_common_functions)
|
2017-06-08 03:32:20 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO wxWidgets/wxWidgets
|
2018-12-14 17:00:47 -08:00
|
|
|
REF v3.1.2
|
|
|
|
SHA512 c6f8a6065e837e145633ddbd0e10910f32009900e1f7155abe0ef53b6fc83dceb9eaf6c56369d13b6526e4b8bd6073bbcbdb790d667c0dab381b67ec5d567f6f
|
2017-06-08 03:32:20 -07:00
|
|
|
HEAD_REF master
|
2018-11-29 08:55:18 +02:00
|
|
|
PATCHES disable-platform-lib-dir.patch
|
2017-05-30 16:00:52 +02:00
|
|
|
)
|
|
|
|
|
2018-02-24 01:29:13 -08:00
|
|
|
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
|
|
|
|
)
|
2017-05-30 16:00:52 +02:00
|
|
|
|
2018-02-24 01:29:13 -08:00
|
|
|
vcpkg_install_cmake()
|
2017-05-30 16:00:52 +02:00
|
|
|
|
2018-02-24 01:29:13 -08:00
|
|
|
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()
|
2017-05-30 16:00:52 +02:00
|
|
|
endif()
|
2018-02-24 01:29:13 -08:00
|
|
|
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()
|
2017-05-30 16:00:52 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(COPY ${SOURCE_PATH}/docs/licence.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/wxwidgets)
|
2018-07-30 20:33:59 +02:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/wxwidgets/licence.txt ${CURRENT_PACKAGES_DIR}/share/wxwidgets/copyright)
|
2018-11-29 08:55:18 +02:00
|
|
|
|
|
|
|
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)
|
2018-07-30 20:33:59 +02:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|