1
0
mirror of https://github.com/PurpleI2P/i2pd-qt.git synced 2025-01-24 13:24:25 +00:00

Add make install support for linux platform

At the moment, `qmake` generates a Makefile with an empty instruction for
install: due to the fact that `INSTALLS` and `TARGET.{path,files}` were
empty. Now Makefile can perform `make install` / `make uninstall` and
install/delete the executable file, desktop file and icons.

This commit implements this feature only for `linux` platform, but it
can be extended to other unix platforms if desired.

According to the commit history, icons are not used directly anywhere,
not used by flatpack, so moving should not break anything, but it was
necessary to install icons in the correct location on the `linux`
platform.
This commit is contained in:
PRESFIL 2022-05-07 23:53:35 +03:00
parent 77b5550dc5
commit 7cdc80777a
10 changed files with 13 additions and 0 deletions

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

Before

Width:  |  Height:  |  Size: 168 KiB

After

Width:  |  Height:  |  Size: 168 KiB

View File

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -3,6 +3,15 @@ QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = i2pd_qt
TARGET.files = i2pd_qt
linux:TARGET.path = /usr/bin/
desktop.files = contrib/website.i2pd.i2pd.desktop
linux:desktop.path = /usr/share/applications/
icons.files = contrib/icons/*
linux:icons.path = /usr/share/icons/hicolor/
TEMPLATE = app
QMAKE_CXXFLAGS *= -Wno-unused-parameter -Wno-maybe-uninitialized -Wno-deprecated-copy
CONFIG += strict_c++ c++11
@ -143,6 +152,10 @@ macx {
linux:!android {
message("Using Linux settings")
LIBS += -lcrypto -lssl -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lpthread -lminiupnpc
INSTALLS += TARGET
INSTALLS += icons
INSTALLS += desktop
}
windows {