File: Internationalization.cmake

package info (click to toggle)
luminance-hdr 2.5.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 34,632 kB
  • sloc: cpp: 42,160; ansic: 892; xml: 87; makefile: 38; sh: 12
file content (26 lines) | stat: -rw-r--r-- 1,386 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
IF(APPLE)
# ADD_DEFINITIONS(-DI18NDIR=QCoreApplication::applicationDirPath\(\)+"/../Resources/i18n")
SET(I18NDIR QCoreApplication::applicationDirPath\(\)+"/../Resources/i18n")
SET(HELPDIR QCoreApplication::applicationDirPath\(\)+"/../Resources/help")
SET(HDRHTMLDIR QCoreApplication::applicationDirPath\(\)+"/../Resources/hdrhtml")
ELSEIF(UNIX)
# ADD_DEFINITIONS(-DPREFIX=${CMAKE_INSTALL_PREFIX})
# ADD_DEFINITIONS(-DI18NDIR="${CMAKE_INSTALL_PREFIX}/share/luminance-hdr/i18n")
SET(BASEDIR "\"${CMAKE_INSTALL_PREFIX}\"")
SET(I18NDIR "\"${CMAKE_INSTALL_PREFIX}/share/luminance-hdr/i18n\"")
SET(HELPDIR "\"${CMAKE_INSTALL_PREFIX}/share/doc/luminance-hdr/help\"")
SET(HDRHTMLDIR "\"${CMAKE_INSTALL_PREFIX}/share/luminance-hdr/hdrhtml\"")
ELSEIF(WIN32)
# ADD_DEFINITIONS(-DI18NDIR=QCoreApplication::applicationDirPath\(\)+"/i18n")
SET(I18NDIR QCoreApplication::applicationDirPath\(\)+"/i18n")
SET(HELPDIR QCoreApplication::applicationDirPath\(\)+"/help")
SET(HDRHTMLDIR QCoreApplication::applicationDirPath\(\)+"/hdrhtml")
ENDIF()

OPTION(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files (WARNING: make clean will delete the source .ts files! Danger!)")
OPTION(LUPDATE_NOOBSOLETE "While doing an lupdate, remove obsolete entries.")

# Holds al the file that will be translated
SET(FILES_TO_TRANSLATE )

# add a function here that creates the translation when necessary