File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed
Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ vcpkg_from_github(
2+ OUT_SOURCE_PATH SOURCE_PATH
3+ REPO google/brotli
4+ REF "v${VERSION} "
5+ SHA512 0b5c374417938eae11101995a373d30b1c91212e901e787b6e4b620195247ee754a3a4abda82793582be0b5fbe9dafca2da0b90e1341b3b91641c27cde6d42de1
6+ HEAD_REF master
7+ )
8+
9+ vcpkg_cmake_configure(
10+ SOURCE_PATH "${SOURCE_PATH} "
11+ OPTIONS
12+ -DBROTLI_BUNDLED_MODE=ON
13+ )
14+
15+ vcpkg_cmake_install()
16+
17+ vcpkg_copy_pdbs()
18+
19+ # Remove unnecessary files
20+ file (REMOVE_RECURSE "${CURRENT_PACKAGES_DIR} /debug/share" )
21+ file (REMOVE_RECURSE "${CURRENT_PACKAGES_DIR} /share/brotli" )
22+
23+ # Skip copying tools in debug builds - the brotli executable is not built in debug mode
24+ # Only copy tools if VCPKG_BUILD_TYPE is not set to debug
25+ if (NOT VCPKG_BUILD_TYPE STREQUAL "debug" )
26+ vcpkg_copy_tools(TOOL_NAMES brotli AUTO_CLEAN)
27+ endif ()
28+
29+ # Handle copyright
30+ vcpkg_install_copyright("${SOURCE_PATH} /LICENSE" )
31+
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " brotli" ,
3+ "version" : " 1.1.0" ,
4+ "description" : " Brotli compression library" ,
5+ "homepage" : " https://github.com/google/brotli" ,
6+ "license" : " MIT" ,
7+ "dependencies" : [
8+ {
9+ "name" : " vcpkg-cmake" ,
10+ "host" : true
11+ }
12+ ]
13+ }
14+
You can’t perform that action at this time.
0 commit comments