vcpkg/ports/nu-book-zxing-cpp/portfile.cmake

35 lines
916 B
CMake
Raw Normal View History

[nu-book-zxing-cpp] New port (#22657) * Upgraded zxing-cpp port to use the source code from https://github.com/nu-book/zxing-cpp * Removed outdated patch files * Added patch files to remove unnecessary install .pdb . Not needed cause lib is created using /Z7. Debug symbols are embedded in the .lib * Updated helper functions as per maintainers guidelines * Braces error * Added vcpkg-cmake-config and vcpkg-cmake as host dependencies * CHanged TARGET to PACKAGE_NAME * Ran format manifest * Ran x-add-version * Update vcpkg.json * Add git as host dependency cause of ExternalProject.cmake:2650 (message): error: could not find git for clone of fmtlib-populate. Fix version as per feedback * Removed git.. does not exist * Set build blackbox test and examples to default to OFF * Ran x-add-versions --all * Change source_path for uwp * Remove quotes * update SHA * Removed unused options when building for uwp * add version * Force type release for uwp * ran add version * Copy zxing.pc only if not UWP * version fix * Fix licence location if building uwp * ran x-add-version * remove NOT silly mistake * ran add version * Removed unnecessary change of source path to build winrt sdk. * Update version * Added flag and MS build option to vcpkg cmake configure * Add -wd4996 flag to ignore deprecated function warning in v142 VCPKG Build tools for WindowStore * add version * Use VCPKG_TARGET_IS_UWP instead of STREQUAL "WindwosStore" Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Added quotes as per review feedback * Fixed versioning as per feedback * Add licence to vcpkg.json * Update version * Removed unnecessary copy of template .pc.in file. CMake takes care of generating the correct .pc file and puts it in the right place. * Add versions * Using extra options to avoid two vcpkg configure * add version * Revert back to the original port * Add new package nu-book-zxing * Updated baseline with new port * Removed non-existence version * Add nu-book-zxing-cpp version * Put correct package name in vcpkg.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update version and add skip to baseline * [nu-book-zxing-cpp][zxing-cpp] Remove abandoned port, promote nu-book fork * Add "supports": "!uwp" Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update version database Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2022-02-15 08:37:35 +08:00
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO zxing-cpp/zxing-cpp
REF "v${VERSION}"
[nu-book-zxing-cpp] update to 2.2.1 (#37027) <!-- If your PR fixes issues, please note that here by adding "Fixes #NNNNNN." for each fixed issue on separate lines. --> Fixes https://github.com/microsoft/vcpkg/issues/37017 No feature need to be tested. <!-- If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/. --> - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [ ] ~~The "supports" clause reflects platforms that may be fixed by this new version.~~ - [ ] ~~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~~ - [ ] ~~Any patches that are no longer applied are deleted from the port's directory.~~ - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file. <!-- If this PR adds a new port, please uncomment and fill out this checklist: - [ ] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ ] The name of the port matches an existing name for this component on https://repology.org/ if possible, and/or is strongly associated with that component on search engines. - [ ] Optional dependencies are resolved in exactly one way. For example, if the component is built with CMake, all `find_package` calls are REQUIRED, are satisfied by `vcpkg.json`'s declared dependencies, or disabled with [CMAKE_DISABLE_FIND_PACKAGE_Xxx](https://cmake.org/cmake/help/latest/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html). - [ ] The versioning scheme in `vcpkg.json` matches what upstream says. - [ ] The license declaration in `vcpkg.json` matches what upstream says. - [ ] The installed as the "copyright" file matches what upstream says. - [ ] The source code of the component installed comes from an authoritative source. - [ ] The generated "usage text" is accurate. See [adding-usage](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/adding-usage.md) for context. - [ ] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [ ] Only one version is in the new port's versions file. - [ ] Only one version is added to each modified port's versions file. END OF NEW PORT CHECKLIST (delete this line) -->
2024-03-02 07:03:39 +08:00
SHA512 f1de8df783061a152a18cd9102ac0c579c40c76ab4a5ba9f30bcb8ddb532f3fac08736840a631adbf7c30a7fa00ce8d65625c8cd695288620601708e8f256a53
[nu-book-zxing-cpp] New port (#22657) * Upgraded zxing-cpp port to use the source code from https://github.com/nu-book/zxing-cpp * Removed outdated patch files * Added patch files to remove unnecessary install .pdb . Not needed cause lib is created using /Z7. Debug symbols are embedded in the .lib * Updated helper functions as per maintainers guidelines * Braces error * Added vcpkg-cmake-config and vcpkg-cmake as host dependencies * CHanged TARGET to PACKAGE_NAME * Ran format manifest * Ran x-add-version * Update vcpkg.json * Add git as host dependency cause of ExternalProject.cmake:2650 (message): error: could not find git for clone of fmtlib-populate. Fix version as per feedback * Removed git.. does not exist * Set build blackbox test and examples to default to OFF * Ran x-add-versions --all * Change source_path for uwp * Remove quotes * update SHA * Removed unused options when building for uwp * add version * Force type release for uwp * ran add version * Copy zxing.pc only if not UWP * version fix * Fix licence location if building uwp * ran x-add-version * remove NOT silly mistake * ran add version * Removed unnecessary change of source path to build winrt sdk. * Update version * Added flag and MS build option to vcpkg cmake configure * Add -wd4996 flag to ignore deprecated function warning in v142 VCPKG Build tools for WindowStore * add version * Use VCPKG_TARGET_IS_UWP instead of STREQUAL "WindwosStore" Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Added quotes as per review feedback * Fixed versioning as per feedback * Add licence to vcpkg.json * Update version * Removed unnecessary copy of template .pc.in file. CMake takes care of generating the correct .pc file and puts it in the right place. * Add versions * Using extra options to avoid two vcpkg configure * add version * Revert back to the original port * Add new package nu-book-zxing * Updated baseline with new port * Removed non-existence version * Add nu-book-zxing-cpp version * Put correct package name in vcpkg.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update version and add skip to baseline * [nu-book-zxing-cpp][zxing-cpp] Remove abandoned port, promote nu-book fork * Add "supports": "!uwp" Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update version database Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2022-02-15 08:37:35 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_BLACKBOX_TESTS=OFF
-DBUILD_EXAMPLES=OFF
)
vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()
vcpkg_cmake_config_fixup(
CONFIG_PATH lib/cmake/ZXing
PACKAGE_NAME ZXing
)
file(READ "${CURRENT_PACKAGES_DIR}/share/ZXing/ZXingConfig.cmake" _contents)
file(WRITE "${CURRENT_PACKAGES_DIR}/share/ZXing/ZXingConfig.cmake" "
include(CMakeFindDependencyMacro)
find_dependency(Threads)
${_contents}")
[nu-book-zxing-cpp] New port (#22657) * Upgraded zxing-cpp port to use the source code from https://github.com/nu-book/zxing-cpp * Removed outdated patch files * Added patch files to remove unnecessary install .pdb . Not needed cause lib is created using /Z7. Debug symbols are embedded in the .lib * Updated helper functions as per maintainers guidelines * Braces error * Added vcpkg-cmake-config and vcpkg-cmake as host dependencies * CHanged TARGET to PACKAGE_NAME * Ran format manifest * Ran x-add-version * Update vcpkg.json * Add git as host dependency cause of ExternalProject.cmake:2650 (message): error: could not find git for clone of fmtlib-populate. Fix version as per feedback * Removed git.. does not exist * Set build blackbox test and examples to default to OFF * Ran x-add-versions --all * Change source_path for uwp * Remove quotes * update SHA * Removed unused options when building for uwp * add version * Force type release for uwp * ran add version * Copy zxing.pc only if not UWP * version fix * Fix licence location if building uwp * ran x-add-version * remove NOT silly mistake * ran add version * Removed unnecessary change of source path to build winrt sdk. * Update version * Added flag and MS build option to vcpkg cmake configure * Add -wd4996 flag to ignore deprecated function warning in v142 VCPKG Build tools for WindowStore * add version * Use VCPKG_TARGET_IS_UWP instead of STREQUAL "WindwosStore" Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Added quotes as per review feedback * Fixed versioning as per feedback * Add licence to vcpkg.json * Update version * Removed unnecessary copy of template .pc.in file. CMake takes care of generating the correct .pc file and puts it in the right place. * Add versions * Using extra options to avoid two vcpkg configure * add version * Revert back to the original port * Add new package nu-book-zxing * Updated baseline with new port * Removed non-existence version * Add nu-book-zxing-cpp version * Put correct package name in vcpkg.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update version and add skip to baseline * [nu-book-zxing-cpp][zxing-cpp] Remove abandoned port, promote nu-book fork * Add "supports": "!uwp" Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update version database Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2022-02-15 08:37:35 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")