Skip to content

Commit

Permalink
add QTAV_XXX_VERSION in prf. sdk user can detect qtav version in qmake
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Dec 18, 2015
1 parent 602b120 commit f5b7592
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/install_sdk/install_sdk.pro
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ write_file($$BUILD_DIR/sdk_uninstall.$$SCRIPT_SUFFIX, sdk_uninstall.commands, ap
message(run $$BUILD_DIR/sdk_install.$$SCRIPT_SUFFIX to install $${MODULE_FULL_NAME} as a Qt module)

greaterThan(QT_MAJOR_VERSION, 4) {

AV_PRF_CONT = "android: QMAKE_LFLAGS += -lOpenSLES"
AV_PRF_CONT = "QTAV_MAJOR_VERSION=$$QTAV_MAJOR_VERSION"
AV_PRF_CONT += "QTAV_MINOR_VERSION=$$QTAV_MINOR_VERSION"
AV_PRF_CONT += "QTAV_PATCH_VERSION=$$QTAV_PATCH_VERSION"
AV_PRF_CONT += "android: QMAKE_LFLAGS += -lOpenSLES"
#AV_PRF_CONT += "QMAKE_LFLAGS += -lavutil -lavcodec -lavformat -lswscale"
#config_avresample: AV_PRF_CONT += "QMAKE_LFLAGS += -lavresample"
#config_swresample: AV_PRF_CONT += "QMAKE_LFLAGS += -lswresample"
Expand Down
3 changes: 3 additions & 0 deletions tools/install_sdk/qt4/av.prf
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
QTAV_MAJOR_VERSION=1
QTAV_MINOR_VERSION=9
QTAV_PATCH_VERSION=0
load(qt_functions.prf)
qtAddLibrary(QtAV)

0 comments on commit f5b7592

Please sign in to comment.