mirror of https://github.com/axmolengine/axmol.git
Qt 5: System-wide installation of targets
This commit is contained in:
parent
366dbeda31
commit
6f4f8c0e38
|
@ -10,3 +10,6 @@ INCLUDEPATH += ../include
|
|||
|
||||
TARGET = $${LIB_OUTPUT_DIR}/cocosdenshion
|
||||
|
||||
INSTALLS += target
|
||||
target.path = $${LIB_INSTALL_DIR}
|
||||
|
||||
|
|
|
@ -157,3 +157,6 @@ INCLUDEPATH += ../../extensions/Components
|
|||
|
||||
TARGET = $${LIB_OUTPUT_DIR}/cocos2d
|
||||
|
||||
INSTALLS += target
|
||||
target.path = $${LIB_INSTALL_DIR}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Cocos2D-X
|
||||
Icon=/opt/cocos2dx_TestCpp/icon.png
|
||||
Exec=/opt/cocos2dx_TestCpp/cocos2dx_TestCpp
|
Loading…
Reference in New Issue