work save
This commit is contained in:
parent
95168077b9
commit
1859558864
|
@ -5,7 +5,9 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
CONFIG += c++17
|
CONFIG += c++17
|
||||||
CONFIG += nokey
|
CONFIG += nokey
|
||||||
|
|
||||||
APP_NAME = RedPandaIDE
|
isEmpty(APP_NAME) {
|
||||||
|
APP_NAME = RedPandaCPP
|
||||||
|
}
|
||||||
|
|
||||||
gcc {
|
gcc {
|
||||||
QMAKE_CXXFLAGS_RELEASE += -Werror=return-type
|
QMAKE_CXXFLAGS_RELEASE += -Werror=return-type
|
||||||
|
@ -341,9 +343,13 @@ linux: {
|
||||||
TRANSLATIONS += \
|
TRANSLATIONS += \
|
||||||
RedPandaIDE_zh_CN.ts
|
RedPandaIDE_zh_CN.ts
|
||||||
|
|
||||||
|
isEmpty(PREFIX) {
|
||||||
|
PREFIX = /usr/local
|
||||||
|
}
|
||||||
|
|
||||||
# Default rules for deployment.
|
# Default rules for deployment.
|
||||||
qnx: target.path = /tmp/$${APP_NAME}/bin
|
qnx: target.path = $${PREFIX}/bin
|
||||||
else: unix:!android: target.path = /opt/$${APP_NAME}/bin
|
else: unix:!android: target.path = $${PREFIX}/bin
|
||||||
!isEmpty(target.path): INSTALLS += target
|
!isEmpty(target.path): INSTALLS += target
|
||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
|
|
|
@ -5,14 +5,26 @@ SUBDIRS += \
|
||||||
astyle \
|
astyle \
|
||||||
consolepauser
|
consolepauser
|
||||||
|
|
||||||
APP_NAME = RedPandaIDE
|
APP_NAME = RedPandaCPP
|
||||||
|
|
||||||
linux: {
|
linux: {
|
||||||
resources.path = /opt/$${APP_NAME}
|
|
||||||
resources.files += linux/*
|
|
||||||
resources.files += NEWS.md
|
|
||||||
resources.files += LICENSE
|
|
||||||
resources.files += README.md
|
|
||||||
|
|
||||||
|
isEmpty(PREFIX) {
|
||||||
|
PREFIX = /usr/local
|
||||||
|
}
|
||||||
|
|
||||||
|
resources.path = $${PREFIX}/share/$${APP_NAME}
|
||||||
|
resources.files += linux/templates
|
||||||
INSTALLS += resources
|
INSTALLS += resources
|
||||||
|
|
||||||
|
docs.path = $${PREFIX}/share/docs/$${APP_NAME}
|
||||||
|
docs.files += README.md
|
||||||
|
docs.files += NEWS.md
|
||||||
|
docs.files += LICENSE
|
||||||
|
INSTALLS += docs
|
||||||
|
|
||||||
|
pixmaps.path = $${PREFIX}/share/pixmaps
|
||||||
|
pixmaps.files += linux/redpandaide.png
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
QT -= gui
|
QT -= gui
|
||||||
|
|
||||||
APP_NAME = RedPandaIDE
|
isEmpty(APP_NAME) {
|
||||||
|
APP_NAME = RedPandaCPP
|
||||||
|
}
|
||||||
|
|
||||||
CONFIG += c++11 console
|
CONFIG += c++11 console
|
||||||
CONFIG -= app_bundle
|
CONFIG -= app_bundle
|
||||||
|
@ -17,9 +19,14 @@ SOURCES += \
|
||||||
ASResource.cpp \
|
ASResource.cpp \
|
||||||
astyle_main.cpp
|
astyle_main.cpp
|
||||||
|
|
||||||
|
isEmpty(PREFIX) {
|
||||||
|
PREFIX = /usr/local
|
||||||
|
}
|
||||||
|
|
||||||
# Default rules for deployment.
|
# Default rules for deployment.
|
||||||
qnx: target.path = /tmp/$${APP_NAME}/bin
|
qnx: target.path = $${PREFIX}/libexec/$${APP_NAME}
|
||||||
else: unix:!android: target.path = /opt/$${APP_NAME}/bin
|
else: unix:!android: target.path = $${PREFIX}/libexec/$${APP_NAME}
|
||||||
|
|
||||||
!isEmpty(target.path): INSTALLS += target
|
!isEmpty(target.path): INSTALLS += target
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
|
|
|
@ -3,7 +3,9 @@ QT -= gui
|
||||||
CONFIG += c++11 console
|
CONFIG += c++11 console
|
||||||
CONFIG -= app_bundle
|
CONFIG -= app_bundle
|
||||||
|
|
||||||
APP_NAME = RedPandaIDE
|
isEmpty(APP_NAME) {
|
||||||
|
APP_NAME = RedPandaCPP
|
||||||
|
}
|
||||||
|
|
||||||
# You can make your code fail to compile if it uses deprecated APIs.
|
# You can make your code fail to compile if it uses deprecated APIs.
|
||||||
# In order to do so, uncomment the following line.
|
# In order to do so, uncomment the following line.
|
||||||
|
@ -24,7 +26,11 @@ SOURCES += \
|
||||||
CONFIG += lrelease
|
CONFIG += lrelease
|
||||||
CONFIG += embed_translations
|
CONFIG += embed_translations
|
||||||
|
|
||||||
|
isEmpty(PREFIX) {
|
||||||
|
PREFIX = /usr/local
|
||||||
|
}
|
||||||
|
|
||||||
# Default rules for deployment.
|
# Default rules for deployment.
|
||||||
qnx: target.path = /tmp/$${APP_NAME}/bin
|
qnx: target.path = /tmp/$${PREFIX}/libexec/$${APP_NAME}
|
||||||
else: unix:!android: target.path = /opt/$${APP_NAME}/bin
|
else: unix:!android: target.path = /usr/$${PREFIX}/libexec/$${APP_NAME}
|
||||||
!isEmpty(target.path): INSTALLS += target
|
!isEmpty(target.path): INSTALLS += target
|
||||||
|
|
Loading…
Reference in New Issue