File: Internationalization.cmake

package info (click to toggle)
luminance-hdr 2.6.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 34,700 kB
  • sloc: cpp: 43,912; ansic: 4,122; xml: 116; makefile: 20; sh: 7
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