Qt 5: System-wide installation of targets

This commit is contained in:
Thomas Perl 2013-07-23 10:20:20 +00:00
parent 366dbeda31
commit 6f4f8c0e38
5 changed files with 28 additions and 1 deletions

View File

@ -10,3 +10,6 @@ INCLUDEPATH += ../include
TARGET = $${LIB_OUTPUT_DIR}/cocosdenshion
INSTALLS += target
target.path = $${LIB_INSTALL_DIR}

View File

@ -157,3 +157,6 @@ INCLUDEPATH += ../../extensions/Components
TARGET = $${LIB_OUTPUT_DIR}/cocos2d
INSTALLS += target
target.path = $${LIB_INSTALL_DIR}

View File

@ -17,6 +17,11 @@ CONFIG(debug, debug|release) {
OBJECTS_DIR = obj/$${BUILD_TYPE}
LIB_OUTPUT_DIR = $${PWD}/../../lib/$${OS_TYPE}/$${BUILD_TYPE}
# Installation location of binaries
LIB_INSTALL_DIR = /usr/lib
BIN_INSTALL_DIR = /usr/bin
DESKTOP_INSTALL_DIR = /usr/share/applications
INCLUDEPATH += $${PWD}/..
INCLUDEPATH += $${PWD}/../include
INCLUDEPATH += $${PWD}/../platform

View File

@ -1,7 +1,7 @@
include(../../../../cocos2dx/proj.qt5/common.pri)
TARGET = TestCpp
TARGET = cocos2dx_TestCpp
INCLUDEPATH += ..
INCLUDEPATH += ../Classes
@ -111,3 +111,14 @@ LIBS += $${LINK_AGAINST_COCOS2DX}
LIBS += $${LINK_AGAINST_COCOSDENSHION}
LIBS += $${LINK_AGAINST_COCOSEXTENSION}
INSTALLS += target
target.path = /opt/$${TARGET}
INSTALLS += desktop
desktop.files = $${TARGET}.desktop
desktop.path = $${DESKTOP_INSTALL_DIR}
INSTALLS += resources
resources.files = icon.png ../Resources
resources.path = /opt/$${TARGET}

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Type=Application
Name=Cocos2D-X
Icon=/opt/cocos2dx_TestCpp/icon.png
Exec=/opt/cocos2dx_TestCpp/cocos2dx_TestCpp