From c72556671cabaea06f534ff73eb052ca08a57781 Mon Sep 17 00:00:00 2001 From: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Date: Fri, 11 Nov 2022 20:02:26 +0100 Subject: [PATCH] add tracy/0.9 --- recipes/tracy/all/conandata.yml | 3 +++ recipes/tracy/all/test_package/CMakeLists.txt | 3 +++ recipes/tracy/all/test_package/test_package.cpp | 4 ++++ recipes/tracy/config.yml | 2 ++ 4 files changed, 12 insertions(+) diff --git a/recipes/tracy/all/conandata.yml b/recipes/tracy/all/conandata.yml index 1c5bd3d35cfef..266a1ecb7f6b1 100644 --- a/recipes/tracy/all/conandata.yml +++ b/recipes/tracy/all/conandata.yml @@ -1,4 +1,7 @@ sources: + "0.9": + url: "https://github.com/wolfpld/tracy/archive/refs/tags/v0.9.tar.gz" + sha256: "93a91544e3d88f3bc4c405bad3dbc916ba951cdaadd5fcec1139af6fa56e6bfc" "0.8.2.1": url: "https://github.com/wolfpld/tracy/archive/v0.8.2.1.tar.gz" sha256: "97f478579efa1f5ce4c8619014a20327010fea122c21248701fe2bbb46ec1c1f" diff --git a/recipes/tracy/all/test_package/CMakeLists.txt b/recipes/tracy/all/test_package/CMakeLists.txt index 7fd39c3e128e7..a21a716d47b2b 100644 --- a/recipes/tracy/all/test_package/CMakeLists.txt +++ b/recipes/tracy/all/test_package/CMakeLists.txt @@ -6,3 +6,6 @@ find_package(Tracy REQUIRED CONFIG) add_executable(${PROJECT_NAME} test_package.cpp) target_link_libraries(${PROJECT_NAME} PRIVATE Tracy::TracyClient) target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11) +if(Tracy_VERSION VERSION_GREATER_EQUAL "0.9") + target_compile_definitions(${PROJECT_NAME} PRIVATE TRACY_GE_0_9) +endif() diff --git a/recipes/tracy/all/test_package/test_package.cpp b/recipes/tracy/all/test_package/test_package.cpp index 3baf0806049f9..7d1382592d76d 100644 --- a/recipes/tracy/all/test_package/test_package.cpp +++ b/recipes/tracy/all/test_package/test_package.cpp @@ -1,4 +1,8 @@ +#ifdef TRACY_GE_0_9 +#include +#else #include +#endif int main(int argc, char **argv) { ZoneScopedN("main") diff --git a/recipes/tracy/config.yml b/recipes/tracy/config.yml index bb4757863ed10..77aaa018b1794 100644 --- a/recipes/tracy/config.yml +++ b/recipes/tracy/config.yml @@ -1,4 +1,6 @@ versions: + "0.9": + folder: all "0.8.2.1": folder: all "0.8.1":