forked from lxqt/qterminal
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release qterminal 0.14.1
- Loading branch information
Showing
60 changed files
with
25,487 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
# remove files from deployment using `git archive` | ||
|
||
# git files | ||
.gitattributes export-ignore | ||
.github export-ignore | ||
.gitignore export-ignore | ||
.gitattributes export-ignore | ||
.github export-ignore | ||
.gitignore export-ignore | ||
|
||
|
||
# several files and directories we never want to export | ||
# a little bit belt and braces as the most of these files | ||
# should never ever be in the repository | ||
|
||
.*~ export-ignore | ||
.kdev4 export-ignore | ||
.*~ export-ignore | ||
.kdev4 export-ignore | ||
.translation-update export-ignore | ||
|
||
/build export-ignore | ||
/temp export-ignore | ||
/tmp export-ignore | ||
/build export-ignore | ||
/temp export-ignore | ||
/tmp export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
build | ||
*.pro.user* | ||
src/translations/qterminal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
translations='./src' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) | ||
|
||
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) | ||
# CMP0000: Call the cmake_minimum_required() command at the beginning of the top-level | ||
# CMakeLists.txt file even before calling the project() command. | ||
# The cmake_minimum_required(VERSION) command implicitly invokes the cmake_policy(VERSION) | ||
# command to specify that the current project code is written for the given range of CMake | ||
# versions. | ||
project(qterminal) | ||
|
||
include(GNUInstallDirs) | ||
include(CheckFunctionExists) | ||
|
||
# qterminal version | ||
set(STR_VERSION "0.9.0") | ||
set(LXQTBT_MINIMUM_VERSION "0.5.0") | ||
set(QTERMWIDGET_MINIMUM_VERSION "0.9.0") | ||
set(QTERMINAL_VERSION "0.14.1") | ||
|
||
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF) | ||
|
||
if(NOT CMAKE_BUILD_TYPE) | ||
set(CMAKE_BUILD_TYPE Release) | ||
endif() | ||
|
||
# we need qpa/qplatformnativeinterface.h for global shortcut | ||
find_package(Qt5Gui REQUIRED) | ||
find_package(Qt5Widgets REQUIRED) | ||
find_package(Qt5Network REQUIRED) | ||
find_package(Qt5LinguistTools REQUIRED) | ||
if(APPLE) | ||
elseif(UNIX) | ||
find_package(Qt5X11Extras REQUIRED) | ||
find_package(Qt5DBus) | ||
|
||
# Minimum Versions | ||
set(LXQTBT_MINIMUM_VERSION "0.6.0") | ||
set(QTERMWIDGET_MINIMUM_VERSION "0.14.1") | ||
set(QT_MINIMUM_VERSION "5.7.1") | ||
|
||
find_package(Qt5Gui ${QT_MINIMUM_VERSION} REQUIRED) | ||
find_package(Qt5LinguistTools ${QT_MINIMUM_VERSION} REQUIRED) | ||
find_package(Qt5Widgets ${QT_MINIMUM_VERSION} REQUIRED) | ||
find_package(Qt5Network ${QT_MINIMUM_VERSION} REQUIRED) | ||
if(UNIX) | ||
find_package(Qt5DBus ${QT_MINIMUM_VERSION} REQUIRED) | ||
find_package(Qt5X11Extras ${QT_MINIMUM_VERSION} REQUIRED) | ||
endif() | ||
find_package(QTermWidget5 ${QTERMWIDGET_MINIMUM_VERSION} REQUIRED) | ||
find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED) | ||
|
@@ -49,8 +52,7 @@ elseif(UNIX) | |
endif() | ||
|
||
add_definitions( | ||
-DSTR_VERSION=\"${STR_VERSION}\" | ||
-DQT_NO_FOREACH | ||
-DQTERMINAL_VERSION=\"${QTERMINAL_VERSION}\" | ||
) | ||
|
||
set(EXE_NAME qterminal) | ||
|
@@ -68,6 +70,7 @@ set(QTERM_SRC | |
src/bookmarkswidget.cpp | ||
src/fontdialog.cpp | ||
src/dbusaddressable.cpp | ||
src/tab-switcher.cpp | ||
) | ||
|
||
set(QTERM_MOC_SRC | ||
|
@@ -80,9 +83,9 @@ set(QTERM_MOC_SRC | |
src/propertiesdialog.h | ||
src/bookmarkswidget.h | ||
src/fontdialog.h | ||
src/tab-switcher.h | ||
) | ||
|
||
|
||
if (Qt5DBus_FOUND) | ||
add_definitions(-DHAVE_QDBUS) | ||
QT5_ADD_DBUS_ADAPTOR(QTERM_SRC src/org.lxqt.QTerminal.Window.xml mainwindow.h MainWindow) | ||
|
@@ -134,14 +137,6 @@ lxqt_translate_ts(QTERM_QM | |
${QTERM_UI_SRC} | ||
${QTERM_MOC_SRC} | ||
TRANSLATION_DIR "src/translations" | ||
PULL_TRANSLATIONS | ||
${PULL_TRANSLATIONS} | ||
CLEAN_TRANSLATIONS | ||
${CLEAN_TRANSLATIONS} | ||
TRANSLATIONS_REPO | ||
${TRANSLATIONS_REPO} | ||
TRANSLATIONS_REFSPEC | ||
${TRANSLATIONS_REFSPEC} | ||
) | ||
|
||
include_directories( | ||
|
@@ -164,12 +159,12 @@ if(APPLEBUNDLE) | |
|
||
# create Info.plist file | ||
set(MACOSX_BUNDLE_ICON_FILE qterminal.icns) | ||
set(MACOSX_BUNDLE_INFO_STRING "QTerminal ${STR_VERSION}") | ||
set(MACOSX_BUNDLE_INFO_STRING "QTerminal ${QTERMINAL_VERSION}") | ||
set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.qterminal") | ||
set(MACOSX_BUNDLE_LONG_VERSION_STRING "${STR_VERSION}") | ||
set(MACOSX_BUNDLE_LONG_VERSION_STRING "${QTERMINAL_VERSION}") | ||
set(MACOSX_BUNDLE_BUNDLE_NAME "${EXE_NAME}") | ||
set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${STR_VERSION}") | ||
set(MACOSX_BUNDLE_BUNDLE_VERSION "${STR_VERSION}") | ||
set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${QTERMINAL_VERSION}") | ||
set(MACOSX_BUNDLE_BUNDLE_VERSION "${QTERMINAL_VERSION}") | ||
set(MACOSX_BUNDLE_COPYRIGHT "(c) Petr Vanek <[email protected]>") | ||
|
||
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/macosx/qterminal.icns" | ||
|
@@ -214,6 +209,15 @@ if(HAVE_F_SETENV) | |
) | ||
endif() | ||
|
||
target_compile_definitions(${EXE_NAME} | ||
PRIVATE | ||
"QT_USE_QSTRINGBUILDER" | ||
"QT_NO_CAST_FROM_ASCII" | ||
"QT_NO_CAST_TO_ASCII" | ||
"QT_NO_URL_CAST_FROM_STRING" | ||
"QT_NO_CAST_FROM_BYTEARRAY" | ||
) | ||
|
||
target_link_libraries(${EXE_NAME} | ||
Qt5::Gui | ||
qtermwidget5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.