Skip to content

Commit

Permalink
add tracy/0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Nov 11, 2022
1 parent fd60d99 commit c725566
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/tracy/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 3 additions & 0 deletions recipes/tracy/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
4 changes: 4 additions & 0 deletions recipes/tracy/all/test_package/test_package.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#ifdef TRACY_GE_0_9
#include <tracy/Tracy.hpp>
#else
#include <Tracy.hpp>
#endif

int main(int argc, char **argv) {
ZoneScopedN("main")
Expand Down
2 changes: 2 additions & 0 deletions recipes/tracy/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"0.9":
folder: all
"0.8.2.1":
folder: all
"0.8.1":
Expand Down

0 comments on commit c725566

Please sign in to comment.