qmake for linux
|
@ -5,6 +5,8 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
CONFIG += c++17
|
CONFIG += c++17
|
||||||
CONFIG += nokey
|
CONFIG += nokey
|
||||||
|
|
||||||
|
APP_DIR = RedPandaIDE
|
||||||
|
|
||||||
gcc {
|
gcc {
|
||||||
QMAKE_CXXFLAGS_RELEASE += -Werror=return-type
|
QMAKE_CXXFLAGS_RELEASE += -Werror=return-type
|
||||||
QMAKE_CXXFLAGS_DEBUG += -Werror=return-type
|
QMAKE_CXXFLAGS_DEBUG += -Werror=return-type
|
||||||
|
@ -342,8 +344,8 @@ TRANSLATIONS += \
|
||||||
RedPandaIDE_zh_CN.ts
|
RedPandaIDE_zh_CN.ts
|
||||||
|
|
||||||
# Default rules for deployment.
|
# Default rules for deployment.
|
||||||
qnx: target.path = /tmp/$${TARGET}/bin
|
qnx: target.path = /tmp/$${APP_DIR}/bin
|
||||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
else: unix:!android: target.path = /opt/$${APP_DIR}/bin
|
||||||
!isEmpty(target.path): INSTALLS += target
|
!isEmpty(target.path): INSTALLS += target
|
||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
SUBDIRS += \
|
SUBDIRS += \
|
||||||
# ../QScintilla/src/qscintilla.pro \
|
|
||||||
RedPandaIDE \
|
RedPandaIDE \
|
||||||
consolepauser
|
consolepauser
|
||||||
|
|
||||||
|
APP_NAME = RedPandaIDE
|
||||||
|
|
||||||
|
resources.path = /opt/$${APP_NAME}
|
||||||
|
resources.files += linux/*
|
||||||
|
|
||||||
|
INSTALLS += resources
|
||||||
|
|
|
@ -3,6 +3,8 @@ QT -= gui
|
||||||
CONFIG += c++11 console
|
CONFIG += c++11 console
|
||||||
CONFIG -= app_bundle
|
CONFIG -= app_bundle
|
||||||
|
|
||||||
|
APP_DIR = RedPandaIDE
|
||||||
|
|
||||||
# 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.
|
||||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
@ -23,6 +25,6 @@ CONFIG += lrelease
|
||||||
CONFIG += embed_translations
|
CONFIG += embed_translations
|
||||||
|
|
||||||
# Default rules for deployment.
|
# Default rules for deployment.
|
||||||
qnx: target.path = /tmp/$${TARGET}/bin
|
qnx: target.path = /tmp/$${APP_DIR}/bin
|
||||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
else: unix:!android: target.path = /opt/$${APP_DIR}/bin
|
||||||
!isEmpty(target.path): INSTALLS += target
|
!isEmpty(target.path): INSTALLS += target
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Comment=A lightweighted QT-based C/C++ IDE
|
||||||
|
Comment[zh_CN]=基于QT的轻量级C/C++集成开发环境
|
||||||
|
Exec=/opt/RedPandaIDE/bin/RedPandaIDE %F
|
||||||
|
GenericName=Red Panda Dev-C++ 7
|
||||||
|
GenericName[zh_CN]=小熊猫Dev-C++ 7
|
||||||
|
MimeType=application/pdf
|
||||||
|
Name=Red Panda Dev-C++ 7
|
||||||
|
Name[zh_CN]=小熊猫Dev-C++ 7
|
||||||
|
StartupNotify=false
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Development;Qt;
|
||||||
|
Icon=/opt/RedPandaIDE/redpandaide.png
|
||||||
|
Path=/opt/RedPandaIDE/bin
|
After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
@ -0,0 +1,16 @@
|
||||||
|
[Template]
|
||||||
|
ver=1
|
||||||
|
Name=Console Application
|
||||||
|
Icon=console.ico
|
||||||
|
Description=A console application
|
||||||
|
Category=Basic
|
||||||
|
|
||||||
|
[Unit0]
|
||||||
|
CName=main.c
|
||||||
|
CppName=main.cpp
|
||||||
|
C=consoleapp_c.txt
|
||||||
|
Cpp=consoleapp_cpp.txt
|
||||||
|
|
||||||
|
[Project]
|
||||||
|
UnitCount=1
|
||||||
|
Type=1
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
|
||||||
|
|
||||||
|
int main(int argc, char *argv[]) {
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
|
||||||
|
|
||||||
|
int main(int argc, char** argv) {
|
||||||
|
return 0;
|
||||||
|
}
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
@ -0,0 +1,14 @@
|
||||||
|
[Template]
|
||||||
|
ver=1
|
||||||
|
Name=Empty Project
|
||||||
|
Icon=empty.ico
|
||||||
|
Description=An empty project
|
||||||
|
Category=Basic
|
||||||
|
|
||||||
|
[Unit0]
|
||||||
|
CName=
|
||||||
|
CppName=
|
||||||
|
|
||||||
|
[Project]
|
||||||
|
UnitCount=1
|
||||||
|
Type=1
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 630 B |
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 190 B |