Skip to content

Commit

Permalink
au: add version 0.4.1 (#26462)
Browse files Browse the repository at this point in the history
* Add version 0.4.0, 0.4.1 of Au to conan

Unfortunately, we discovered a small breakage in 0.4.0: we forgot to add
one of the headers to `CMakeLists.txt`.  I added a patch which fixes the
build for 0.4.0.  Version 0.4.1 does not use this patch.

Along the way, I also used Au's new options to avoid enabling tests and
bringing in the GTest dependency.  This means we don't need to keep
using a version of the existing patch file for 0.3.5.

I also updated the test file to be more idiomatic.

I tested these installations with the following commands:

```sh
cd recipes/au
conan create all/conanfile.py --version=0.4.0
conan create all/conanfile.py --version=0.4.1
```

Fixes #26181.

* Put most recent recipes first

This seems more commonly done.

* Remove 0.4.0 and patch
  • Loading branch information
chiphogg authored Feb 11, 2025
1 parent 945e014 commit 51beb32
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions recipes/au/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"0.4.1":
url: "https://github.com/aurora-opensource/au/archive/refs/tags/0.4.1.tar.gz"
sha256: "5e88a0ffcb0a0843f4bd4d4ea4429c793f85dfcb8c1e7f7978de6fecab739b84"
"0.3.5":
url: "https://github.com/aurora-opensource/au/archive/refs/tags/0.3.5.tar.gz"
sha256: "7ec826dc42968dc1633de56e4f9d06e70de73e820d2ac4788e8453343a622c9b"
Expand Down
2 changes: 2 additions & 0 deletions recipes/au/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def source(self):

def generate(self):
tc = CMakeToolchain(self)
tc.variables["AU_EXCLUDE_GTEST_DEPENDENCY"] = "ON"
tc.variables["AU_ENABLE_TESTING"] = "OFF"
tc.generate()

def build(self):
Expand Down
2 changes: 1 addition & 1 deletion recipes/au/all/test_package/test_package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using namespace au;
int main(void) {
constexpr auto length = meters(100.0);

std::cout << length << " == " << length.in(kilo(meters)) <<" km" << std::endl;
std::cout << length << " == " << length.as(kilo(meters)) << std::endl;

return EXIT_SUCCESS;
}
2 changes: 2 additions & 0 deletions recipes/au/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
versions:
"0.4.1":
folder: all
"0.3.5":
folder: all

0 comments on commit 51beb32

Please sign in to comment.