-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
79 additions
and
29 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
aa339b9fb5f147c5d88341ed4abf85e88b78173714c3a994860aa81f3b558b674829c17a1567d04642ae9df3ce6ed0e88001ba143bb152e91ed7e75bc607a86b cmake-git-version-tracking.20221027.tar.xz | ||
b8df4b89afba941851573033ddf72a5725faadc3476ff4ac9a1d9abb7070d6a503be4bdf91ace0fa0ec9b87239d801d45f0bc6170b284cc21b99f45dda55e507 coolerpp-0b19a5b.tar.xz | ||
216d0970ace00e3176788a2b5abb7b92490c005111d26365e7807a5e86c6323e38b33e2e5b01f4ee43438a8f8e96cacf16cedc6f905a7e0ad58752905b260b38 project_options-v0.28.0.tar.xz | ||
d652ff0b6fe4833dfd340ff9687358e7b39dc85157924a855cfc51079446d249b2ea58713a2dc430dd1b65b459399fd26dddecddbcb1b7f896082987bee46489 project_options-v0.33.0.tar.xz |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,54 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright (C) 2024 Roberto Rossini (roberros@uio.no) | ||
# SPDX-License-Identifier: MIT | ||
|
||
set -e | ||
set -u | ||
|
||
# shellcheck disable=SC2064 | ||
trap "cd '$PWD'" EXIT | ||
|
||
git_root="$(readlink -f "$(git rev-parse --show-toplevel)")" | ||
|
||
wd="$git_root/conan-envs" | ||
conanfile="$git_root/conanfile.txt" | ||
|
||
for compiler in gcc clang; do | ||
for build_type in Debug Release RelWithDebInfo; do | ||
CC="$compiler" | ||
if [[ "$compiler" == gcc* ]]; then | ||
CXX="${compiler/gcc/g++}${compiler#gcc}" | ||
profile=gcc | ||
else | ||
CXX="${compiler/clang/clang++}${compiler#clang}" | ||
profile=clang | ||
fi | ||
|
||
export CC | ||
export CXX | ||
|
||
outdir="$wd/$compiler/$build_type" | ||
rm -rf "$outdir" | ||
mkdir -p "$outdir" | ||
|
||
conan install \ | ||
--build=missing \ | ||
--update \ | ||
-pr "$profile" \ | ||
-s compiler.cppstd=17 \ | ||
-s build_type="$build_type" \ | ||
--output-folder="$outdir" \ | ||
"$conanfile" | ||
|
||
conan install \ | ||
--build=missing \ | ||
--update \ | ||
-pr "$profile" \ | ||
-s compiler.cppstd=17 \ | ||
-s build_type="$build_type" \ | ||
-o shared=True \ | ||
--output-folder="$outdir" \ | ||
"$conanfile" | ||
done | ||
done |