Skip to content

Commit

Permalink
config test only checks libass headers because we dynamic load it at
Browse files Browse the repository at this point in the history
runtime

pass CONFIG =config_libass_link to force linking against libass. add this
for debian as a dependency
  • Loading branch information
wang-bin committed Aug 24, 2015
1 parent e650c8d commit 3e3fea9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config.tests/libass/libass.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 3,5 @@ CONFIG = console

SOURCES = main.cpp

LIBS = -lass
#LIBS = -lass
include(../paths.pri)
5 changes: 0 additions & 5 deletions config.tests/libass/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 21,3 @@
extern "C" {
#include <ass/ass.h>
}
int main()
{
ass_library_done(ass_library_init());
return 0;
}
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 7,5 @@ export QT_SELECT=qt5
dh $@ --parallel

override_dh_auto_configure:
qmake "CONFIG =no_rpath recheck"
qmake "CONFIG =no_rpath recheck config_libass_link"

2 changes: 1 addition & 1 deletion src/libQtAV.pro
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 275,7 @@ config_openglwindow {
}
config_libass {
#link against libass instead of dynamic load
!capi|android|ios|winrt {
!capi|android|ios|winrt|config_libass_link {
LIBS = -lass #-lfribidi -lfontconfig -lxml2 -lfreetype -lharfbuzz -lz
DEFINES = CAPI_LINK_ASS
}
Expand Down

0 comments on commit 3e3fea9

Please sign in to comment.