Skip to content

Commit

Permalink
cli: remove libs that are not direct dependencies
Browse files Browse the repository at this point in the history
pkg-config will find the non-direct dependencies
  • Loading branch information
jstebbins committed Apr 15, 2024
1 parent 3d661d8 commit 220cb32
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/module.defs
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,18 @@ TEST.GCC.L = $(CONTRIB.build/)lib

TEST.libs = $(LIBHB.a)

TEST.pkgconfig_libs = libass libavformat libavfilter libavcodec libavutil libswresample dvdnav \
dvdread fribidi libswscale vpx theoraenc theoradec vorbis vorbisenc ogg x264 libbluray freetype2 \
bzip2 zlib jansson harfbuzz opus speex liblzma dav1d libturbojpeg SvtAv1Enc
TEST.pkgconfig_libs = libass libavformat libavfilter libavcodec libavutil libswresample dvdnav \
dvdread libswscale theoraenc theoradec vorbis vorbisenc ogg x264 libbluray \
jansson libturbojpeg SvtAv1Enc

ifeq (,$(filter $(HOST.system),darwin cygwin mingw))
TEST.pkgconfig_libs += fontconfig
endif
TEST.pkgconfig_libs += $(foreach m,$(MODULES.NAMES),$($m.OSL.libs))

ifeq (1,$(FEATURE.flatpak))
TEST.pkgconfig_libs += glib-2.0
endif

TEST.GCC.pkgconfig = $(shell $(TEST.PKGCONFIG.exe) --libs $(TEST.pkgconfig_libs))

TEST.GCC.l = mp3lame zimg

TEST.GCC.l += $(foreach m,$(MODULES.NAMES),$($m.OSL.libs))

TEST.install.exe = $(DESTDIR)$(PREFIX/)bin/$(notdir $(TEST.exe))
ifeq (1,$(FEATURE.flatpak))
TEST.metainfo.template = $(TEST.src/)fr.handbrake.HandBrakeCLI.metainfo.xml.in.in
Expand Down

0 comments on commit 220cb32

Please sign in to comment.