Skip to content

Commit

Permalink
Update tracy.spec
Browse files Browse the repository at this point in the history
Signed-off-by: madomado <[email protected]>
  • Loading branch information
madonuko authored Jul 23, 2024
1 parent 87b1b28 commit c1986b7
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions anda/devs/tracy/tracy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ Summary: A real time, nanosecond resolution, remote telemetry, hybrid frame and
License: BSD-3-Clause
URL: https://github.com/wolfpld/tracy
Source0: https://github.com/wolfpld/tracy/archive/refs/tags/v%version.tar.gz
BuildRequires: libxkbcommon dbus-devel libglvnd glfw-devel freetype-devel pkgconfig(capstone) pkgconfig(libunwind) pkgconfig(libdebuginfod) pkgconfig(tbb)
BuildRequires: dbus-devel libglvnd glfw-devel freetype-devel pkgconfig(capstone) pkgconfig(libunwind) pkgconfig(libdebuginfod) pkgconfig(tbb)
BuildRequires: wayland-devel
BuildRequires: capstone-devel
BuildRequires: libxkbcommon-devel
BuildRequires: cmake meson gcc gcc-c++ mold
Patch: https://github.com/wolfpld/tracy/commit/1a971d867d6fa5bf6dc57d705dcbbc6020031e7a.patch

Expand All @@ -35,17 +36,20 @@ for lib in `pkg-config --list-all | sed -E 's/ .+$//'`; do pkg-config --cflags-o
for lib in `pkg-config --list-all | sed -E 's/ .+$//'`; do pkg-config --libs $lib >> lflags;done
cflags=$(cat cflags | tr -s '\n' | tr '\n' ' ')
lflags=$(cat lflags | tr -s '\n' | tr '\n' ' ')
export CC="gcc -fuse-ld=mold"
export CXX="g++ -fuse-ld=mold -fPIE $CXXFLAGS $cflags"
export LD="mold $LDFLAGS $lflags"
export CFLAGS="$CFLAGS -fuse-ld=mold"
export CXXFLAGS="$CXXFLAGS -fuse-ld=mold"
%meson
%meson_build
%make_build -C capture/build/unix release
%make_build -C csvexport/build/unix release
%make_build -C import-chrome/build/unix release
%make_build -C library/unix release
%make_build -C profiler/build/unix release
%make_build -C update/build/unix release

%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C capture/build/unix release &
%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C csvexport/build/unix release &
%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C import-chrome/build/unix release &
%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C library/unix release &
%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C profiler/build/unix release &
%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C update/build/unix release &
wait

%install
%meson_install
Expand Down

0 comments on commit c1986b7

Please sign in to comment.