Skip to content

Commit

Permalink
vcpkg - make it compatible with non wayland systems
Browse files Browse the repository at this point in the history
  • Loading branch information
fran6co committed May 19, 2023
1 parent 40619a5 commit 344b305
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
13 changes: 13 additions & 0 deletions ports/tracy/005-fix-imgui-path-legacy.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/profiler/build/unix/legacy.mk b/profiler/build/unix/legacy.mk
index 24765f1a..dc2923c8 100644
--- a/profiler/build/unix/legacy.mk
+++ b/profiler/build/unix/legacy.mk
@@ -1,7 +1,7 @@
CFLAGS +=
CXXFLAGS := $(CFLAGS) -std=c++17
DEFINES += -DIMGUI_ENABLE_FREETYPE
-INCLUDES := $(shell pkg-config --cflags glfw3 freetype2 capstone) -I../../../imgui
+INCLUDES := -I../../../imgui $(shell pkg-config --cflags glfw3 freetype2 capstone)
LIBS := $(shell pkg-config --libs glfw3 freetype2 capstone) -lpthread -ldl

PROJECT := Tracy
2 changes: 2 additions & 0 deletions ports/tracy/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ vcpkg_from_github(
002-fix-capstone-5.patch
003-fix-imgui-path.patch
004-fix-missing-threads-dep.patch # https://github.com/wolfpld/tracy/pull/562
005-fix-imgui-path-legacy.patch
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
Expand Down Expand Up @@ -84,6 +85,7 @@ function(tracy_tool_install_make tracy_TOOL tracy_TOOL_NAME)
BASE_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}${short_buildtype}"
OUTPUT_VARIABLE relative_path_makefile_dir)

set(ENV{LEGACY} 1)
vcpkg_backup_env_variables(VARS PKG_CONFIG_PATH)
vcpkg_host_path_list(PREPEND ENV{PKG_CONFIG_PATH} "${CURRENT_INSTALLED_DIR}${path_suffix}/lib/pkgconfig")

Expand Down
1 change: 1 addition & 0 deletions ports/tracy/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "tracy",
"version-semver": "0.9.1",
"port-version": 1,
"description": "A real time, nanosecond resolution, remote telemetry, hybrid frame and sampling profiler for games and other applications.",
"homepage": "https://github.com/wolfpld/tracy",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8094,7 +8094,7 @@
},
"tracy": {
"baseline": "0.9.1",
"port-version": 0
"port-version": 1
},
"transwarp": {
"baseline": "2.2.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/t-/tracy.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "77e2063ccf000ddf44db90335335b0d87efe0bf4",
"version-semver": "0.9.1",
"port-version": 1
},
{
"git-tree": "1dbe1080d7c00eb3aa76f87c8c62511d9d9671a7",
"version-semver": "0.9.1",
Expand Down

0 comments on commit 344b305

Please sign in to comment.