Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(build): add missing rcc options
Browse files Browse the repository at this point in the history
This should reduce the qTox binary size.
  • Loading branch information
sudden6 committed Jun 21, 2017
1 parent e5bc9bb commit 6b7c0c7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ project(qtox)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)

set(RCC_OPTIONS -compress 9 -threshold 0)

# Use C++11.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions")
Expand Down Expand Up @@ -138,6 +140,7 @@ qt5_add_resources(
res.qrc
${CMAKE_CURRENT_BINARY_DIR}/translations.qrc
DEPENDS ${${PROJECT_NAME}_QM_FILES}
OPTIONS ${RCC_OPTIONS}
)

if(NOT SMILEYS)
Expand All @@ -147,12 +150,14 @@ endif()
if(NOT "${SMILEYS}" STREQUAL "DISABLED")
qt5_add_resources(
${PROJECT_NAME}_RESOURCES
smileys/emojione.qrc)
smileys/emojione.qrc
OPTIONS ${RCC_OPTIONS})

if(NOT "${SMILEYS}" STREQUAL "MIN")
qt5_add_resources(
${PROJECT_NAME}_RESOURCES
smileys/smileys.qrc)
smileys/smileys.qrc
OPTIONS ${RCC_OPTIONS})
endif()

endif()
Expand Down

0 comments on commit 6b7c0c7

Please sign in to comment.