add NO_LICENSE flag
This commit is contained in:
parent
a9ebe17c22
commit
b211b225f1
4
BUILD.md
4
BUILD.md
|
@ -47,7 +47,7 @@ It's recommends to build with disabled USE_FTGL.
|
|||
|
||||
# BSD Unix
|
||||
|
||||
It's recommends to build with enabled NO_DOCS.
|
||||
It's recommends to build with enabled NO_LANGS.
|
||||
|
||||
# Windows
|
||||
|
||||
|
@ -72,6 +72,8 @@ It's recommends to build with disabled USE_FTGL to fix notes drawing.
|
|||
|
||||
**NO_DOCS**: do not install documents; disabled by default.
|
||||
|
||||
**NO_LICENSE**: do not install license; disabled by default.
|
||||
|
||||
**WITH_MAN**: install man page; disabled by default.
|
||||
|
||||
**WITH_TIMIDITY**: install desktop file and wrapper script for timidity; disabled by default.
|
||||
|
|
|
@ -7,7 +7,7 @@ v0.7.0:
|
|||
- Translate notes
|
||||
- Fix Qt strings localization
|
||||
- New options: INSTALL_ALL_LANGS, USE_SYSTEM_FONT, NO_DOCS, USE_SYSTEM_RTMIDI,
|
||||
WITH_MAN, WITH_TIMIDITY, WITH_FLUIDSYNTH, USE_FTGL, NO_LANGS
|
||||
WITH_MAN, WITH_TIMIDITY, WITH_FLUIDSYNTH, USE_FTGL, NO_LANGS, NO_LICENSE
|
||||
- Allow to switch between languages within a session
|
||||
- Add Piano Keyboard widget
|
||||
- Update documentation
|
||||
|
|
|
@ -7,6 +7,7 @@ CONFIG += link_pkgconfig
|
|||
# default
|
||||
isEmpty(USE_FTGL): USE_FTGL="ON"
|
||||
isEmpty(NO_DOCS): NO_DOCS="OFF"
|
||||
isEmpty(NO_LICENSE): NO_LICENSE="OFF"
|
||||
isEmpty(WITH_MAN): WITH_MAN="OFF"
|
||||
isEmpty(WITH_TIMIDITY): WITH_TIMIDITY="OFF"
|
||||
isEmpty(WITH_FLUIDSYNTH): WITH_FLUIDSYNTH="OFF"
|
||||
|
@ -166,6 +167,13 @@ unix {
|
|||
INSTALLS += docs
|
||||
}
|
||||
|
||||
contains(NO_LICENSE, OFF){
|
||||
message(building with license)
|
||||
license.path = $$PREFIX/share/licenses/pianobooster
|
||||
license.files = license.txt
|
||||
INSTALLS += license
|
||||
}
|
||||
|
||||
contains(WITH_MAN, ON){
|
||||
message(building with man)
|
||||
man.path = $$PREFIX/share/man/man6/
|
||||
|
|
|
@ -181,6 +181,7 @@ even without a plugged-in MIDI keyboard.
|
|||
%cmake \
|
||||
-DUSE_SYSTEM_FONT=ON \
|
||||
-DNO_DOCS=ON \
|
||||
-DNO_LICENSE=ON \
|
||||
-DINSTALL_ALL_LANGS=ON \
|
||||
-DUSE_SYSTEM_RTMIDI=ON \
|
||||
-DWITH_MAN=ON \
|
||||
|
@ -191,6 +192,7 @@ even without a plugged-in MIDI keyboard.
|
|||
%qmake_qt5 \
|
||||
USE_SYSTEM_FONT=ON \
|
||||
NO_DOCS=ON \
|
||||
NO_LICENSE=ON \
|
||||
INSTALL_ALL_LANGS=ON \
|
||||
USE_SYSTEM_RTMIDI=ON \
|
||||
WITH_MAN=ON \
|
||||
|
|
|
@ -222,6 +222,10 @@ if(NOT NO_DOCS)
|
|||
INSTALL( FILES ../ReleaseNotes.txt DESTINATION share/doc/pianobooster/ )
|
||||
endif()
|
||||
|
||||
if(NOT NO_LICENSE)
|
||||
INSTALL( FILES ../license.txt DESTINATION share/licenses/pianobooster/ )
|
||||
endif()
|
||||
|
||||
if(WITH_MAN)
|
||||
INSTALL( FILES ../pianobooster.6 DESTINATION share/man/man6/ )
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue