Commit 39944f9d by 郭峰

Update gamera_videos.pro

parent b85f8dbc
...@@ -12,8 +12,12 @@ TEMPLATE = app ...@@ -12,8 +12,12 @@ TEMPLATE = app
# depend on your compiler). Please consult the documentation of the # depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it. # deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += APP_VERSION=\\\"1.3.0\\\" # DEFINES += APP_VERSION=\\\"1.3.0\\\"
# 获取最新的 git commit hash
GIT_COMMIT_HASH = $$system(git log -1 --format=%h)
# 使用 git commit hash 设置 APP_VERSION
DEFINES += APP_VERSION=\\\"$$GIT_COMMIT_HASH\\\"
QMAKE_LIBDIR += /usr/local/lib QMAKE_LIBDIR += /usr/local/lib
...@@ -136,3 +140,5 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin ...@@ -136,3 +140,5 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
#RESOURCES += \ #RESOURCES += \
# BG.qrc # BG.qrc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment