1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 20:34:39 +01:00

Always run uic on optional ui files so we can get translations out. It was supposed to do this already...

This commit is contained in:
David Sansome 2011-11-03 17:19:37 +00:00
parent a9d6535bcc
commit ce66bdf1e8
2 changed files with 8 additions and 1 deletions

View File

@ -13,6 +13,10 @@ macro(optional_source TOGGLE)
else(${TOGGLE})
list(APPEND OTHER_SOURCES ${OPTIONAL_SOURCE_SOURCES})
list(APPEND OTHER_SOURCES ${OPTIONAL_SOURCE_HEADERS})
qt4_wrap_ui(OTHER_SOURCES ${OPTIONAL_SOURCE_UI})
set(_uic_sources)
qt4_wrap_ui(_uic_sources ${OPTIONAL_SOURCE_UI})
list(APPEND OTHER_SOURCES ${_uic_sources})
list(APPEND OTHER_UIC_SOURCES ${_uic_sources})
endif(${TOGGLE})
endmacro(optional_source)

View File

@ -626,6 +626,8 @@ set(RESOURCES
../data/data.qrc
)
set(OTHER_SOURCES)
set(LINGUAS "All" CACHE STRING "A space-seperated list of translations to compile in to Clementine, or \"None\".")
if (LINGUAS STREQUAL "All")
# build LANGUAGES from all existing .po files
@ -958,6 +960,7 @@ add_library(clementine_lib STATIC
${QRC}
${POT}
${PO}
${OTHER_UIC_SOURCES}
)
add_dependencies(clementine_lib pot)