By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 882
Collapse All | Expand All

(-)a/modules/FindTQt.cmake (-11 / +25 lines)
Lines 24-59 tde_execute_process( Link Here
24
  COMMAND pkg-config tqt --variable=tmoc_executable
24
  COMMAND pkg-config tqt --variable=tmoc_executable
25
  OUTPUT_VARIABLE TMOC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
25
  OUTPUT_VARIABLE TMOC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
26
26
27
if( TMOC_EXECUTABLE )
27
if( NOT EXISTS ${TMOC_EXECUTABLE} )
28
  tqt_message( "  tmoc path: ${TMOC_EXECUTABLE}" )
28
  tde_message_fatal( "tmoc is not found!\n tqt is correctly installed?" )
29
else( )
30
  tde_message_fatal( "Path to tmoc is not set.\n tqt is correctly installed?" )
31
endif( )
29
endif( )
32
30
31
tqt_message( "  tmoc path: ${TMOC_EXECUTABLE}" )
32
33
33
34
# moc_executable
34
# moc_executable
35
tde_execute_process(
35
tde_execute_process(
36
  COMMAND pkg-config tqt --variable=moc_executable
36
  COMMAND pkg-config tqt --variable=moc_executable
37
  OUTPUT_VARIABLE MOC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
37
  OUTPUT_VARIABLE MOC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
38
38
39
if( MOC_EXECUTABLE )
39
if( NOT EXISTS ${MOC_EXECUTABLE} )
40
  tqt_message( "  moc path: ${MOC_EXECUTABLE}" )
41
else( )
42
  tde_message_fatal( "Path to moc is not set.\n tqt is correctly installed?" )
40
  tde_message_fatal( "Path to moc is not set.\n tqt is correctly installed?" )
43
endif( )
41
endif( )
44
42
43
tqt_message( "  moc path: ${MOC_EXECUTABLE}" )
44
45
45
46
# uic_executable
46
# uic_executable
47
tde_execute_process(
47
tde_execute_process(
48
  COMMAND pkg-config tqt --variable=uic_executable
48
  COMMAND pkg-config tqt --variable=uic_executable
49
  OUTPUT_VARIABLE UIC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
49
  OUTPUT_VARIABLE UIC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
50
50
51
if( UIC_EXECUTABLE )
51
if( NOT EXISTS ${UIC_EXECUTABLE} )
52
  tqt_message( "  uic path: ${UIC_EXECUTABLE}" )
52
  tde_message_fatal( "uic not found!\n tqt is correctly installed?" )
53
else( )
53
endif( )
54
  tde_message_fatal( "Path to uic is not set.\n tqt is correctly installed?" )
54
55
tqt_message( "  uic path: ${UIC_EXECUTABLE}" )
56
57
58
# tqt-replace script
59
tde_execute_process(
60
  COMMAND pkg-config tqt --variable=prefix
61
  OUTPUT_VARIABLE TQT_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE )
62
63
set( TQT_REPLACE_SCRIPT "${TQT_PREFIX}/bin/tqt-replace" )
64
65
if( NOT EXISTS ${TQT_REPLACE_SCRIPT} )
66
  tde_message_fatal( "tqt-replace not found!\n Check tqt installation." )
55
endif( )
67
endif( )
56
68
69
tqt_message( "  tqt-replace path: ${TQT_REPLACE_SCRIPT}" )
70
57
71
58
# check if tqt is usable
72
# check if tqt is usable
59
tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
73
tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
(-)a/modules/TDEMacros.cmake (-4 / +3 lines)
Lines 42-50 macro( tde_get_arg ARG_NAME COUNT RETURN REST ) Link Here
42
  list( APPEND ${REST} ${ARGN} )
42
  list( APPEND ${REST} ${ARGN} )
43
  list( FIND ${REST} ${ARG_NAME} _arg_idx)
43
  list( FIND ${REST} ${ARG_NAME} _arg_idx)
44
  if( NOT ${_arg_idx} EQUAL -1 )
44
  if( NOT ${_arg_idx} EQUAL -1 )
45
    list( APPEND ${REST} ___ensure_list___ )
46
    list( REMOVE_AT ${REST} ${_arg_idx} )
45
    list( REMOVE_AT ${REST} ${_arg_idx} )
47
    list( REMOVE_ITEM ${REST} ___ensure_list___ )
48
    set( _i 0 )
46
    set( _i 0 )
49
    while( ${_i} LESS ${COUNT} )
47
    while( ${_i} LESS ${COUNT} )
50
      list( GET ${REST} ${_arg_idx} _arg )
48
      list( GET ${REST} ${_arg_idx} _arg )
Lines 73-84 macro( tde_execute_process ) Link Here
73
  execute_process( ${_rest_args} )
71
  execute_process( ${_rest_args} )
74
  if( ${_result_variable} )
72
  if( ${_result_variable} )
75
    if( DEFINED _message )
73
    if( DEFINED _message )
76
      message( FATAL_ERROR ${_message} )
74
      tde_message_fatal( ${_message} )
77
    else()
75
    else()
78
      if( ${${_result_variable}} MATCHES "^[0-9]+$" )
76
      if( ${${_result_variable}} MATCHES "^[0-9]+$" )
79
        set( ${_result_variable} "status ${${_result_variable}} returned!" )
77
        set( ${_result_variable} "status ${${_result_variable}} returned!" )
80
      endif()
78
      endif()
81
      message( FATAL_ERROR "Error executing '${_command}': ${${_result_variable}}" )
79
      tde_message_fatal( "Error executing '${_command}': ${${_result_variable}}" )
82
    endif()
80
    endif()
83
  endif()
81
  endif()
84
endmacro( tde_execute_process )
82
endmacro( tde_execute_process )
Lines 268-273 macro( tde_add_ui_files _sources ) Link Here
268
    add_custom_command( OUTPUT ${_ui_basename}.h ${_ui_basename}.cpp
266
    add_custom_command( OUTPUT ${_ui_basename}.h ${_ui_basename}.cpp
269
      COMMAND ${CMAKE_COMMAND}
267
      COMMAND ${CMAKE_COMMAND}
270
        -DUIC_EXECUTABLE:FILEPATH=${UIC_EXECUTABLE}
268
        -DUIC_EXECUTABLE:FILEPATH=${UIC_EXECUTABLE}
269
        -DTQT_REPLACE_SCRIPT:FILEPATH=${TQT_REPLACE_SCRIPT}
271
        -DTDE_QTPLUGINS_DIR:FILEPATH=${TDE_QTPLUGINS_DIR}
270
        -DTDE_QTPLUGINS_DIR:FILEPATH=${TDE_QTPLUGINS_DIR}
272
        -DUI_FILE:FILEPATH=${_ui_absolute_path}
271
        -DUI_FILE:FILEPATH=${_ui_absolute_path}
273
        -DMASTER_SOURCE_DIR:FILEPATH=${CMAKE_SOURCE_DIR}
272
        -DMASTER_SOURCE_DIR:FILEPATH=${CMAKE_SOURCE_DIR}
(-)a/modules/tde_uic.cmake (-2 / +2 lines)
Lines 17-28 get_filename_component( _ui_basename ${UI_FILE} NAME_WE ) Link Here
17
# FIXME this will working only on out-of-source mode
17
# FIXME this will working only on out-of-source mode
18
set( local_ui_file ${_ui_basename}.ui )
18
set( local_ui_file ${_ui_basename}.ui )
19
configure_file( ${UI_FILE} ${local_ui_file} COPYONLY )
19
configure_file( ${UI_FILE} ${local_ui_file} COPYONLY )
20
tde_execute_process( COMMAND tqt-replace ${local_ui_file} )
20
tde_execute_process( COMMAND ${TQT_REPLACE_SCRIPT} ${local_ui_file} )
21
21
22
# ui.h extension file, if exists
22
# ui.h extension file, if exists
23
if( EXISTS "${UI_FILE}.h" )
23
if( EXISTS "${UI_FILE}.h" )
24
  configure_file( ${UI_FILE}.h ${local_ui_file}.h COPYONLY )
24
  configure_file( ${UI_FILE}.h ${local_ui_file}.h COPYONLY )
25
  tde_execute_process( COMMAND tqt-replace ${local_ui_file}.h )
25
  tde_execute_process( COMMAND ${TQT_REPLACE_SCRIPT} ${local_ui_file}.h )
26
endif( )
26
endif( )
27
27
28
if( TDE_QTPLUGINS_DIR )
28
if( TDE_QTPLUGINS_DIR )

Return to bug 882