mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 04:33:03 +08:00
[aurora-au] new port (#41119)
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Jon <v-zhli17@microsoft.com>
This commit is contained in:
parent
3207386cc9
commit
f097a7895d
41
ports/aurora-au/disable-googletest.patch
Normal file
41
ports/aurora-au/disable-googletest.patch
Normal file
@ -0,0 +1,41 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b18407f..f1be4c0 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -52,9 +52,6 @@ FetchContent_Declare(
|
||||
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
||||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||||
|
||||
-FetchContent_MakeAvailable(googletest)
|
||||
-include(GoogleTest)
|
||||
-
|
||||
add_subdirectory(au)
|
||||
|
||||
# Configure how Au will be installed.
|
||||
diff --git a/cmake/AuConfig.cmake.in b/cmake/AuConfig.cmake.in
|
||||
index b121f76..65da38a 100644
|
||||
--- a/cmake/AuConfig.cmake.in
|
||||
+++ b/cmake/AuConfig.cmake.in
|
||||
@@ -14,9 +14,6 @@
|
||||
|
||||
@PACKAGE_INIT@
|
||||
|
||||
-include(CMakeFindDependencyMacro)
|
||||
-find_dependency(googletest 1.12.1)
|
||||
-
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/AuHeaders.cmake)
|
||||
|
||||
check_required_components(Au)
|
||||
diff --git a/cmake/HeaderOnlyLibrary.cmake b/cmake/HeaderOnlyLibrary.cmake
|
||||
index 28daf00..f2bf389 100644
|
||||
--- a/cmake/HeaderOnlyLibrary.cmake
|
||||
+++ b/cmake/HeaderOnlyLibrary.cmake
|
||||
@@ -75,7 +75,7 @@ function(header_only_library)
|
||||
)
|
||||
|
||||
# Add the test, if requested.
|
||||
- if (DEFINED ARG_GTEST_SRCS)
|
||||
+ if (0)
|
||||
add_executable("${ARG_NAME}_test")
|
||||
target_sources("${ARG_NAME}_test" PRIVATE ${ARG_GTEST_SRCS})
|
||||
target_link_libraries(
|
23
ports/aurora-au/portfile.cmake
Normal file
23
ports/aurora-au/portfile.cmake
Normal file
@ -0,0 +1,23 @@
|
||||
set(VCPKG_BUILD_TYPE release) # header-only
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO aurora-opensource/au
|
||||
REF "${VERSION}"
|
||||
SHA512 4aa3282f6b76fbadd04ca572734f72c86b1b0b4e85fc21a03d1ab00b83d3aea319ab2dac3934361b5f6fa7c4a0dccece94fe0a57f3d73d208315b51b1950e374
|
||||
HEAD_REF main
|
||||
PATCHES
|
||||
disable-googletest.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(
|
||||
CONFIG_PATH lib/cmake/Au
|
||||
)
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") # Remove empty directory
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
4
ports/aurora-au/usage
Normal file
4
ports/aurora-au/usage
Normal file
@ -0,0 +1,4 @@
|
||||
The package aurora-au provides CMake targets:
|
||||
|
||||
find_package(Au REQUIRED)
|
||||
target_link_libraries(main PRIVATE Au::au)
|
19
ports/aurora-au/vcpkg.json
Normal file
19
ports/aurora-au/vcpkg.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
|
||||
"name": "aurora-au",
|
||||
"version-semver": "0.3.5",
|
||||
"description": "A C++14-compatible physical units library with no dependencies and a single-file delivery option. Emphasis on safety, accessibility, performance, and developer experience.",
|
||||
"homepage": "https://github.com/aurora-opensource/au",
|
||||
"license": "Apache-2.0",
|
||||
"supports": "!osx",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
9
versions/a-/aurora-au.json
Normal file
9
versions/a-/aurora-au.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "dbea0dd2b0494c189b944e96b477192d37461bb9",
|
||||
"version-semver": "0.3.5",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
@ -356,6 +356,10 @@
|
||||
"baseline": "2017-06-21-c75699d2a8caa726260c29b6d7a0fd35f8f28933",
|
||||
"port-version": 2
|
||||
},
|
||||
"aurora-au": {
|
||||
"baseline": "0.3.5",
|
||||
"port-version": 0
|
||||
},
|
||||
"autobahn": {
|
||||
"baseline": "20.8.1",
|
||||
"port-version": 2
|
||||
|
Loading…
Reference in New Issue
Block a user