File tree Expand file tree Collapse file tree
ports/include-what-you-use Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Source: include-what-you-use
2+ Version: 0.14
3+ Build-Depends: llvm[clang]
4+ Description: |
5+ include-what-you-use is a tool to analyze #includes in C and C++ source files
Original file line number Diff line number Diff line change 1+ include (vcpkg_common_functions )
2+
3+ set (VERSION 0.14)
4+
5+ # Get archive
6+ vcpkg_download_distfile (ARCHIVE
7+ URLS "https://include-what-you-use.org/downloads/include-what-you-use-${VERSION} .src.tar.gz"
8+ FILENAME "include-what-you-use-${VERSION} .src.tar.gz"
9+ SHA512 ac328c6bdf834fde58bbf14c662fdf97aac22a24a85bce4a6475c73027b3ec1c558925efb5f0ac3addf446f21d29e37a70a7c5773c178f9ab7f12e90be7d69b4
10+ )
11+
12+ # Extract archive
13+ vcpkg_extract_source_archive_ex (
14+ OUT_SOURCE_PATH SOURCE_PATH
15+ ARCHIVE ${ARCHIVE}
16+ REF ${VERSION}
17+ )
18+
19+ # Run CMake build
20+ vcpkg_configure_cmake (
21+ SOURCE_PATH ${SOURCE_PATH}
22+ PREFER_NINJA
23+ PATCHES ${PATCHES}
24+ )
25+
26+ vcpkg_install_cmake ()
27+
28+ # Allow empty include directory
29+ set (VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
30+
31+ # Prepare distribution
32+ file (MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR} /tools/include-what-you-use )
33+ file (RENAME ${CURRENT_PACKAGES_DIR} /bin/fix_includes.py ${CURRENT_PACKAGES_DIR} /tools/include-what-you-use/fix_includes.py )
34+ file (RENAME ${CURRENT_PACKAGES_DIR} /bin/include-what-you-use.exe ${CURRENT_PACKAGES_DIR} /tools/include-what-you-use/include-what-you-use.exe )
35+ file (RENAME ${CURRENT_PACKAGES_DIR} /bin/iwyu_tool.py ${CURRENT_PACKAGES_DIR} /tools/include-what-you-use/iwyu_tool.py )
36+ file (REMOVE_RECURSE ${CURRENT_PACKAGES_DIR} /bin )
37+ file (INSTALL ${SOURCE_PATH} /LICENSE.TXT DESTINATION ${CURRENT_PACKAGES_DIR} /share/include-what-you-use RENAME copyright )
You can’t perform that action at this time.
0 commit comments