Skip to content

Commit

Permalink
add libchardet submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Sep 21, 2014
1 parent 73b13d2 commit 8757263
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 1,3 @@
[submodule "contrib/libchardet"]
path = contrib/libchardet
url = https://github.com/wang-bin/libchardet.git
1 change: 1 addition & 0 deletions contrib/libchardet
Submodule libchardet added at e85ecb
2 changes: 1 addition & 1 deletion src/libQtAV.pri
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 147,7 @@ unix {
QMAKE_LFLAGS_SONAME = -Wl,-install_name,$$PROJECT_LIBDIR/
#QMAKE_LFLAGS = -Wl,-rpath,@loader_path/../,-rpath,@executable_path/../
} else {
RPATHDIR = \$\$ORIGIN \$\$ORIGIN/lib . /usr/local/lib
RPATHDIR = \$\$ORIGIN \$\$ORIGIN/lib . /usr/local/lib $$[QT_INSTALL_LIBS]
# $$PROJECT_LIBDIR only for host == target. But QMAKE_TARGET.arch is only available on windows. QT_ARCH is bad, e.g. QT_ARCH=i386 while QMAKE_HOST.arch=i686
# https://bugreports.qt-project.org/browse/QTBUG-30263
isEmpty(CROSS_COMPILE): RPATHDIR *= $$PROJECT_LIBDIR
Expand Down
7 changes: 4 additions & 3 deletions src/libQtAV.pro
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 99,10 @@ win32 {
DEFINES = __STDC_CONSTANT_MACROS
android: CONFIG = config_opensl
LIBS = -lavcodec -lavformat -lavutil -lswscale
config_chardet {
DEFINES = QTAV_HAVE_CHARDET=1
LIBS = -lchardet

exists($$PROJECTROOT/contrib/libchardet/libchardet.pri) {
include($$PROJECTROOT/contrib/libchardet/libchardet.pri)
DEFINES = QTAV_HAVE_CHARDET=1
}
config_avfilter {
DEFINES = QTAV_HAVE_AVFILTER=1
Expand Down

0 comments on commit 8757263

Please sign in to comment.