mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 14:15:32 +00:00
1.) Definition of macro add_gettext_python()
Missed the part, when there were more then one argument specifying the possible extension. 2.) Typo in extension: .layouts => .layout 3.) Reorder the creation of lyx.pot to make more like when creating with autoconf. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29106 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8f52d3b7db
commit
b5880744c9
@ -12,7 +12,11 @@ include_directories(${TOP_SRC_DIR}/po)
|
||||
SET(_lyxname ${PACKAGE})
|
||||
SET(_py_sources)
|
||||
macro(add_gettext_python _par _dir)
|
||||
file(GLOB _sources ${TOP_SRC_DIR}/${_dir}/${ARGN})
|
||||
set(_sources)
|
||||
foreach(_arg ${ARGN})
|
||||
file(GLOB _s1 ${TOP_SRC_DIR}/${_dir}/${_arg})
|
||||
list(APPEND _sources ${_s1})
|
||||
endforeach(_arg)
|
||||
SET(_dst "${CMAKE_CURRENT_BINARY_DIR}/${_par}_l10n.pot")
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT "${_dst}"
|
||||
@ -29,13 +33,13 @@ SET_SOURCE_FILES_PROPERTIES("${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.cat.pot" GE
|
||||
SET_SOURCE_FILES_PROPERTIES("${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot" GENERATED)
|
||||
SET_SOURCE_FILES_PROPERTIES("${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot" GENERATED)
|
||||
|
||||
add_gettext_python(qt4 src/frontends/qt4/ui *.ui)
|
||||
add_gettext_python(layouts lib/layouts *.layout *.inc *.module)
|
||||
add_gettext_python(languages lib languages)
|
||||
add_gettext_python(encodings lib encodings)
|
||||
add_gettext_python(ui lib/ui *.ui *.inc)
|
||||
add_gettext_python(external lib external_templates)
|
||||
add_gettext_python(formats lib configure.py)
|
||||
add_gettext_python(languages lib languages)
|
||||
add_gettext_python(layouts lib/layouts *.layouts *.inc *.module)
|
||||
add_gettext_python(qt4 src/frontends/qt4/ui *.ui)
|
||||
add_gettext_python(ui lib/ui *.ui *.inc)
|
||||
|
||||
FIND_PROGRAM(GETTEXT_XGETTEXT_EXECUTABLE xgettext)
|
||||
FIND_PROGRAM(GETTEXT_MSGUNIQ_EXECUTABLE msguniq)
|
||||
@ -63,7 +67,7 @@ ADD_CUSTOM_COMMAND(
|
||||
SET(_potfiles_dep)
|
||||
|
||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in "")
|
||||
foreach(_dir src src/frontends/qt4 src/insets src/mathed src/support src/tex2lyx)
|
||||
foreach(_dir src/frontends/qt4 src/insets src/mathed src/support src/tex2lyx src)
|
||||
file(GLOB _tmp_potfiles RELATIVE ${TOP_SRC_DIR} ${TOP_SRC_DIR}/${_dir}/*.cpp)
|
||||
foreach(_f ${_tmp_potfiles})
|
||||
LIST(APPEND _potfiles_dep "${TOP_SRC_DIR}/${_f}")
|
||||
|
Loading…
Reference in New Issue
Block a user