Skip to content

Commit

Permalink
xprof/bt?
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Applencourt committed Oct 22, 2024
1 parent d80dd91 commit ccca9fe
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions xprof/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ BUILT_SOURCES = \
perfetto_prunned.pb.h \
perfetto_prunned.pb.cc

# Library to be packaged
lib_LTLIBRARIES = libXTally.la libXTimeline.la libXAggreg.la libXStripper.la

# File generated but not distributed
nodist_libXTally_la_SOURCES = \
$(BTX_TALLY_GENERATED) \
Expand Down Expand Up @@ -125,6 +122,10 @@ libXAggreg_la_SOURCES = \
tally_core.hpp \
btx_aggreg.cpp

# Library to be packaged
bt2dir = $(pkglibdir)/bt2
bt2_LTLIBRARIES = libXTally.la libXTimeline.la libXAggreg.la libXStripper.la

# JSON: Right now we harcode it, We should use pkgtools at some point https://github.com/nlohmann/json/blob/develop/single_include/nlohmann/json.hpp

# Compiler flags
Expand All @@ -148,17 +149,6 @@ libXStripper_la_CFLAGS = -Wall -Wextra -Wno-unused-parameter $(WERROR) -fno-fast
libXStripper_la_CXXFLAGS = -std=c++17 -Wall -Wextra -Wno-unused-parameter $(WERROR) -fno-fast-math $(BABELTRACE2_CFLAGS)
libXStripper_la_LDFLAGS = $(BABELTRACE2_LIBS) -avoid-version -module

install-exec-hook:
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/bt2
$(LN) -f $(DESTDIR)$(libdir)/libXAggreg.so $(DESTDIR)$(pkglibdir)/bt2/libXAggreg.so
$(LN) -f $(DESTDIR)$(libdir)/libXTimeline.so $(DESTDIR)$(pkglibdir)/bt2/libXTimeline.so
$(LN) -f $(DESTDIR)$(libdir)/libXTally.so $(DESTDIR)$(pkglibdir)/bt2/libXTally.so
$(LN) -f $(DESTDIR)$(libdir)/libXStripper.so $(DESTDIR)$(pkglibdir)/bt2/libXStripper.so

uninstall-hook:
$(RM) $(DESTDIR)$(pkglibdir)/bt2/libXAggreg.so $(DESTDIR)$(pkglibdir)/bt2/libXTimeline.so $(DESTDIR)$(pkglibdir)/bt2/libXTally.so $(DESTDIR)$(pkglibdir)/bt2/libXStripper.so
-rmdir $(DESTDIR)$(pkglibdir)/bt2

# Cannot use check_LTLIBRARIES because we need the shared version of those
# Thanks Vincent Danjean
# noinst_LTLIBRARIES would be the correct thing but then libtool
Expand Down

0 comments on commit ccca9fe

Please sign in to comment.