mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 17:19:00 +08:00
5b744ed753
* [gettext] Preset more MSVC checks * Modify configure to speed up windows builds * Support checked-in config cache * Collect config [skip actions] * Add x64 config * Collect config [skip actions] * Re-use most of windows config.cache [skip actions] * WIP [skip actions] * WIP [skip actions] * WIP [skip actions] * WIP * [mchehab-zbar] Update gettext dependencies * Add missing patch * Don't test find_package(Gettext) * [vcpkg-autotools-cache] Script port for config caching * Add missing file * Remove vcpkg-autoconf-cache --------- Co-authored-by: Monica <v-liumonica@microsoft.com>
57 lines
1.5 KiB
CMake
57 lines
1.5 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO mchehab/zbar
|
|
REF "${VERSION}"
|
|
SHA512 d73d71873bec68ee021997512a9edbd223f5f5fe43c66c4dd3502224ba6009be2e5e1714766cb8e1056244673e87e0939ed0319116f61d7371b5ab79fb5e04eb
|
|
HEAD_REF master
|
|
PATCHES
|
|
c99.patch
|
|
issue219.patch
|
|
windows.patch
|
|
x64.patch
|
|
)
|
|
|
|
vcpkg_list(SET options)
|
|
if("nls" IN_LIST FEATURES)
|
|
vcpkg_list(APPEND options "--enable-nls")
|
|
else()
|
|
vcpkg_list(APPEND options "--disable-nls")
|
|
set(ENV{AUTOPOINT} true) # true, the program
|
|
# Simulate the relevant effects of (interactive) `gettextize`.
|
|
file(TOUCH "${SOURCE_PATH}/po/Makefile.in.in")
|
|
file(GLOB_RECURSE m4_files "${CURRENT_HOST_INSTALLED_DIR}/share/gettext/aclocal/*.m4")
|
|
file(INSTALL ${m4_files} DESTINATION "${SOURCE_PATH}/config")
|
|
endif()
|
|
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
AUTOCONFIG
|
|
ADD_BIN_TO_PATH # checking for working iconv
|
|
OPTIONS
|
|
${options}
|
|
--without-dbus
|
|
--without-gtk
|
|
--without-imagemagick
|
|
--without-java
|
|
--without-jpeg
|
|
--without-python
|
|
--without-qt
|
|
--disable-video
|
|
--without-xv
|
|
OPTIONS_RELEASE
|
|
--disable-assert
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
"${CURRENT_PACKAGES_DIR}/share/doc"
|
|
"${CURRENT_PACKAGES_DIR}/tools"
|
|
)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|