mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-14 09:32:20 +00:00
1.) some white spaces removed
2.) Using direct call to uic-qt4. This was needed to enable translated strings to appear in many dialogs. I needed some time to find out, why strings form autocof-build made it into the dialogs, but strings from cmake-build did not. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29233 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7503ba017e
commit
278d413dc3
@ -31,7 +31,7 @@ macro(lyx_add_path _list _prefix)
|
||||
set(_tmp)
|
||||
foreach(_current ${${_list}})
|
||||
set(_tmp ${_tmp} ${_prefix}/${_current})
|
||||
#message( ${_prefix}/${_current})
|
||||
#message(${_prefix}/${_current})
|
||||
endforeach(_current)
|
||||
set(${_list} ${_tmp})
|
||||
endmacro(lyx_add_path _out _prefix)
|
||||
@ -48,18 +48,14 @@ macro(LYX_ADD_UI_FILES _sources _ui)
|
||||
set(_header ${CMAKE_CURRENT_BINARY_DIR}/ui_${_basename}.h)
|
||||
|
||||
# we need to run uic and replace some things in the generated file
|
||||
# this is done by executing the cmake script kde4uic.cmake
|
||||
# this is done by executing the cmake script LyXuic.cmake
|
||||
# ######
|
||||
# Latest test showed on linux and windows show no bad consequeces,
|
||||
# so we removed the call to LyXuic.cmake
|
||||
add_custom_command(OUTPUT ${_header}
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS
|
||||
-DKDE4_HEADER:BOOL=ON
|
||||
-DKDE_UIC_EXECUTABLE:FILEPATH=${QT_UIC_EXECUTABLE}
|
||||
-DKDE_UIC_FILE:FILEPATH=${_tmp_FILE}
|
||||
-DKDE_UIC_H_FILE:FILEPATH=${_header}
|
||||
-DKDE_UIC_BASENAME:STRING=${_basename}
|
||||
-P ${CMAKE_MODULE_PATH}/LyXuic.cmake
|
||||
COMMAND ${QT_UIC_EXECUTABLE} -tr lyx::qt_ ${_tmp_FILE} -o ${_header}
|
||||
MAIN_DEPENDENCY ${_tmp_FILE}
|
||||
)
|
||||
)
|
||||
set(${_ui} ${${_ui}} ${_header})
|
||||
endforeach (_current_FILE)
|
||||
endmacro(LYX_ADD_UI_FILES)
|
||||
@ -67,11 +63,11 @@ endmacro(LYX_ADD_UI_FILES)
|
||||
|
||||
|
||||
macro(LYX_AUTOMOC)
|
||||
if(QT4_GET_MOC_INC_DIRS)
|
||||
if (QT4_GET_MOC_INC_DIRS)
|
||||
QT4_GET_MOC_INC_DIRS(_moc_INCS)
|
||||
endif()
|
||||
|
||||
set(_matching_FILES )
|
||||
set(_matching_FILES)
|
||||
foreach (_current_FILE ${ARGN})
|
||||
|
||||
get_filename_component(_abs_FILE ${_current_FILE} ABSOLUTE)
|
||||
@ -99,7 +95,7 @@ macro(LYX_AUTOMOC)
|
||||
|
||||
string(LENGTH ${_basename} _length)
|
||||
MATH(EXPR _mocless_length ${_length}-4)
|
||||
STRING(SUBSTRING ${_basename} 0 ${_mocless_length} _mocless_name )
|
||||
STRING(SUBSTRING ${_basename} 0 ${_mocless_length} _mocless_name)
|
||||
|
||||
set(_header ${_abs_PATH}/${_mocless_name}.h)
|
||||
|
||||
@ -181,7 +177,7 @@ macro(lyx_const_touched_files _allinone_name _list)
|
||||
list(APPEND ${_file_list} ${_abs_FILE})
|
||||
else()
|
||||
GET_FILENAME_COMPONENT(_file_name ${_abs_FILE} NAME_WE)
|
||||
STRING(REGEX REPLACE "-" "_" _file_name "${_file_name}" )
|
||||
STRING(REGEX REPLACE "-" "_" _file_name "${_file_name}")
|
||||
set(__macro_name ${_file_name}___ASSUME_CONST)
|
||||
|
||||
if (_rebuild_file_const)
|
||||
|
Loading…
Reference in New Issue
Block a user