forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[aurora-au] Update to version 0.4.0 and add test port (microsoft#42679)
Co-authored-by: Jon <v-zhli17@microsoft.com>
- Loading branch information
1 parent
119d4ff
commit a08d0b1
Showing
11 changed files
with
92 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
diff --git a/au/code/au/CMakeLists.txt b/au/code/au/CMakeLists.txt | ||
index edb965c..7c518bf 100644 | ||
--- a/au/code/au/CMakeLists.txt | ||
+++ b/au/code/au/CMakeLists.txt | ||
@@ -39,6 +39,7 @@ header_only_library( | ||
quantity.hh | ||
quantity_point.hh | ||
rep.hh | ||
+ static_cast_checkers.hh | ||
unit_of_measure.hh | ||
unit_symbol.hh | ||
wrapper_operations.hh | ||
@@ -465,6 +466,14 @@ gtest_based_test( | ||
au | ||
) | ||
|
||
+gtest_based_test( | ||
+ NAME static_cast_checkers_test | ||
+ SRCS | ||
+ static_cast_checkers_test.cc | ||
+ DEPS | ||
+ au | ||
+) | ||
+ | ||
gtest_based_test( | ||
NAME stdx_test | ||
SRCS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled) | ||
|
||
vcpkg_find_acquire_program(PKGCONFIG) | ||
|
||
vcpkg_cmake_configure(SOURCE_PATH "${CURRENT_PORT_DIR}/project") | ||
|
||
vcpkg_cmake_build() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.29) | ||
|
||
project(vcpkg-ci-aurora-au LANGUAGES CXX) | ||
|
||
find_package(Au CONFIG REQUIRED) | ||
|
||
add_executable(test_au_client test_au_client.cc) | ||
target_link_libraries(test_au_client PRIVATE Au::au) | ||
target_compile_features(test_au_client PRIVATE cxx_std_14) |
18 changes: 18 additions & 0 deletions
18
scripts/test_ports/vcpkg-ci-aurora-au/project/test_au_client.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <iostream> | ||
|
||
#include "au/au.hh" | ||
#include "au/io.hh" | ||
#include "au/units/hours.hh" | ||
#include "au/units/meters.hh" | ||
#include "au/units/miles.hh" | ||
|
||
using ::au::symbols::h; | ||
using ::au::symbols::mi; | ||
constexpr auto km = ::au::kilo(::au::symbols::m); | ||
|
||
int main(int argc, char **argv) { | ||
constexpr auto v = 65.0 * mi / h; | ||
std::cout << v << ", in km/h, rounded to nearest integer, is " | ||
<< round_as(km / h, v) << std::endl; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "vcpkg-ci-aurora-au", | ||
"version-string": "ci", | ||
"description": "Testing packages which provide AURORA-AU", | ||
"license": null, | ||
"dependencies": [ | ||
"aurora-au", | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters