diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/ripper37-libbase | |
Diffstat (limited to 'vcpkg/ports/ripper37-libbase')
| -rw-r--r-- | vcpkg/ports/ripper37-libbase/portfile.cmake | 43 | ||||
| -rw-r--r-- | vcpkg/ports/ripper37-libbase/usage | 10 | ||||
| -rw-r--r-- | vcpkg/ports/ripper37-libbase/vcpkg.json | 49 |
3 files changed, 102 insertions, 0 deletions
diff --git a/vcpkg/ports/ripper37-libbase/portfile.cmake b/vcpkg/ports/ripper37-libbase/portfile.cmake new file mode 100644 index 0000000..da1064a --- /dev/null +++ b/vcpkg/ports/ripper37-libbase/portfile.cmake @@ -0,0 +1,43 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO RippeR37/libbase
+ REF "v${VERSION}"
+ SHA512 5bbb6758db694ed899d1181c9dc1ad6f90a55f73c8fb6d05f179695c4cc5e3354989d85879651781a34e6bbd396afe8c8f5fb406a24280e579142618923fc9af
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ net LIBBASE_BUILD_MODULE_NET
+ win LIBBASE_BUILD_MODULE_WIN
+ wx LIBBASE_BUILD_MODULE_WX
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DLIBBASE_OUTPUT_NAME=ripper37-libbase
+ -DLIBBASE_CODE_COVERAGE=OFF
+ -DLIBBASE_BUILD_DOCS=OFF
+ -DLIBBASE_CLANG_TIDY=OFF
+ -DLIBBASE_BUILD_EXAMPLES=OFF
+ -DLIBBASE_BUILD_TESTS=OFF
+ -DLIBBASE_BUILD_PERFORMANCE_TESTS=OFF
+ -DLIBBASE_BUILD_ASAN=OFF
+ -DLIBBASE_BUILD_TSAN=OFF
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME "libbase"
+ CONFIG_PATH "share/libbase"
+)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/ripper37-libbase/usage b/vcpkg/ports/ripper37-libbase/usage new file mode 100644 index 0000000..800ba90 --- /dev/null +++ b/vcpkg/ports/ripper37-libbase/usage @@ -0,0 +1,10 @@ +ripper37-libbase provides CMake targets:
+
+ find_package(libbase CONFIG REQUIRED [<opt_feature>...])
+ target_link_libraries(main PRIVATE libbase::libbase [<opt_feature_target>...])
+
+if enabled via features, it also provides optional CMake package components:
+
+ net - provides target `libbase::libbase_net` - networking module
+ win - provides target `libbase::libbase_win` - WinAPI integration module
+ wx - provides target `libbase::libbase_wx` - wxWidgets integration module
diff --git a/vcpkg/ports/ripper37-libbase/vcpkg.json b/vcpkg/ports/ripper37-libbase/vcpkg.json new file mode 100644 index 0000000..460da10 --- /dev/null +++ b/vcpkg/ports/ripper37-libbase/vcpkg.json @@ -0,0 +1,49 @@ +{ + "name": "ripper37-libbase", + "version": "1.1.2", + "description": "Standalone reimplementation of //base module from Chromium", + "homepage": "https://github.com/RippeR37/libbase", + "documentation": "https://ripper37.github.io/libbase", + "license": "MIT", + "dependencies": [ + { + "name": "glog", + "features": [ + "customprefix" + ] + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "default-features": [ + "net", + { + "name": "win", + "platform": "windows" + } + ], + "features": { + "net": { + "description": "Networking module", + "dependencies": [ + "curl" + ] + }, + "win": { + "description": "Integration module for WinAPI", + "supports": "windows" + }, + "wx": { + "description": "Integration module for wxWidgets", + "dependencies": [ + "wxwidgets" + ] + } + } +} |