mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 12:28:31 +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:
parent
a9d6535bcc
commit
ce66bdf1e8
@ -13,6 +13,10 @@ macro(optional_source TOGGLE)
|
|||||||
else(${TOGGLE})
|
else(${TOGGLE})
|
||||||
list(APPEND OTHER_SOURCES ${OPTIONAL_SOURCE_SOURCES})
|
list(APPEND OTHER_SOURCES ${OPTIONAL_SOURCE_SOURCES})
|
||||||
list(APPEND OTHER_SOURCES ${OPTIONAL_SOURCE_HEADERS})
|
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})
|
endif(${TOGGLE})
|
||||||
endmacro(optional_source)
|
endmacro(optional_source)
|
||||||
|
@ -626,6 +626,8 @@ set(RESOURCES
|
|||||||
../data/data.qrc
|
../data/data.qrc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(OTHER_SOURCES)
|
||||||
|
|
||||||
set(LINGUAS "All" CACHE STRING "A space-seperated list of translations to compile in to Clementine, or \"None\".")
|
set(LINGUAS "All" CACHE STRING "A space-seperated list of translations to compile in to Clementine, or \"None\".")
|
||||||
if (LINGUAS STREQUAL "All")
|
if (LINGUAS STREQUAL "All")
|
||||||
# build LANGUAGES from all existing .po files
|
# build LANGUAGES from all existing .po files
|
||||||
@ -958,6 +960,7 @@ add_library(clementine_lib STATIC
|
|||||||
${QRC}
|
${QRC}
|
||||||
${POT}
|
${POT}
|
||||||
${PO}
|
${PO}
|
||||||
|
${OTHER_UIC_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(clementine_lib pot)
|
add_dependencies(clementine_lib pot)
|
||||||
|
Loading…
Reference in New Issue
Block a user