Added additional build definitions for packaged build:

* disable all desktop file and schema generators (already included in package).

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
This commit is contained in:
Vitaly Zaitsev 2018-01-18 12:46:58 +01:00 committed by Berkus Decker
parent 42fea7cd81
commit 6cf354d516
2 changed files with 7 additions and 2 deletions

View File

@ -7,6 +7,12 @@ if (LINUX)
endif()
endif()
if (PACKAGED_BUILD)
add_definitions(-DTDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME)
add_definitions(-DTDESKTOP_DISABLE_DESKTOP_FILE_GENERATION)
add_definitions(-DTDESKTOP_DISABLE_UNITY_INTEGRATION)
endif()
##================================================
## Codegen Tools
##================================================

View File

@ -31,7 +31,6 @@ BuildRequires: mapbox-variant-devel
BuildRequires: ffmpeg-devel >= 3.1
BuildRequires: openal-soft-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: libtgvoip-devel
BuildRequires: libstdc++-devel
BuildRequires: range-v3-devel
BuildRequires: openssl-devel
@ -66,7 +65,7 @@ mkdir %{_target_platform}
%build
# Building application...
pushd %{_target_platform}
%cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ..
%cmake -G Ninja -DPACKAGED_BUILD=1 -DCMAKE_BUILD_TYPE=Release ..
%ninja_build
popd