TheAssassin
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
50 additions and
40 deletions
-
CMakeLists.txt
-
tools/linuxdeployqt/excludelist.h
|
|
@ -7,15 +7,22 @@ project(linuxdeployqt) |
|
|
|
|
|
|
|
find_program(GIT git) |
|
|
|
|
|
|
|
if("${GIT}" STREQUAL "GIT-NOTFOUND") |
|
|
|
message(WARNING "Could not find git, commit and tag info cannot be updated") |
|
|
|
|
|
|
|
if(NOT GIT_COMMIT) |
|
|
|
message(FATAL_ERROR "Commit ID not set, please call with -DGIT_COMMIT=...") |
|
|
|
endif() |
|
|
|
|
|
|
|
if(NOT GIT_TAG_NAME) |
|
|
|
message(FATAL_ERROR "Tag name not set, please call with -DGIT_TAG_NAME=...") |
|
|
|
endif() |
|
|
|
else() |
|
|
|
# make sure Git revision ID and latest tag is not stored in the CMake cache |
|
|
|
# otherwise, one would have to reset the CMake cache on every new commit to make sure the Git commit ID is up to date |
|
|
|
unset(GIT_COMMIT CACHE) |
|
|
|
unset(GIT_LATEST_TAG CACHE) |
|
|
|
|
|
|
|
if("${GIT}" STREQUAL "GIT-NOTFOUND") |
|
|
|
message(FATAL_ERROR "Could not find git") |
|
|
|
endif() |
|
|
|
|
|
|
|
# read Git revision ID and latest tag number |
|
|
|
execute_process( |
|
|
|
COMMAND "${GIT}" rev-parse --short HEAD |
|
|
@ -52,6 +59,7 @@ if(NOT GIT_TAG_NAME_RESULT EQUAL 0) |
|
|
|
message(FATAL_ERROR "Failed to determine git tag name") |
|
|
|
endif() |
|
|
|
mark_as_advanced(GIT_TAG_NAME GIT_TAG_NAME_RESULT) |
|
|
|
endif() |
|
|
|
|
|
|
|
# set version and build number |
|
|
|
set(VERSION 1-alpha) |
|
|
|
|
|
@ -32,6 +32,7 @@ static const QStringList generatedExcludelist = { |
|
|
|
"libgcc_s.so.1", |
|
|
|
"libgdk_pixbuf-2.0.so.0", |
|
|
|
"libgio-2.0.so.0", |
|
|
|
"libglapi.so.0", |
|
|
|
"libglib-2.0.so.0", |
|
|
|
"libGL.so.1", |
|
|
|
"libgobject-2.0.so.0", |
|
|
@ -59,6 +60,7 @@ static const QStringList generatedExcludelist = { |
|
|
|
"librt.so.1", |
|
|
|
"libSM.so.6", |
|
|
|
"libstdc++.so.6", |
|
|
|
"libthai.so.0", |
|
|
|
"libthread_db.so.1", |
|
|
|
"libusb-1.0.so.0", |
|
|
|
"libutil.so.1", |
|
|
|