~mc-return/compiz/compiz.merge-src-screen.cpp-improvements

« back to all changes in this revision

Viewing changes to cmake/summary.cmake

  • Committer: Dennis kasprzyk
  • Author(s): Dennis Kasprzyk
  • Date: 2009-03-15 05:09:18 UTC
  • Revision ID: git-v1:163f6b6f3c3b7764987cbdf8e03cc355edeaa499
New generalized build system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
macro (_format_string str length return)
2
 
    string (LENGTH "${str}" _str_len)
3
 
    math (EXPR _add_chr "${length} - ${_str_len}")
4
 
    set (${return} "${str}")
5
 
    while (_add_chr GREATER 0)
6
 
        set (${return} "${${return}} ")
7
 
        math (EXPR _add_chr "${_add_chr} - 1")
8
 
    endwhile (_add_chr GREATER 0)
9
 
endmacro (_format_string str length return)
10
 
 
11
 
macro (_print_result_message _name _var)
12
 
    _format_string ("${_name}" 30 __name)
13
 
    if (${_var})
14
 
        set (_result "Yes")
15
 
    else (${_var})
16
 
        set (_result "No")
17
 
    endif (${_var})
18
 
    message ("   ${__name} : ${_result}")
19
 
endmacro (_print_result_message)
20
 
 
21
 
macro (_print_configure_header)
22
 
    _format_string ("${PROJECT_NAME}" 40 _project)
23
 
    _format_string ("${VERSION}" 40 _version)
24
 
    message ("\n************************************************************")
25
 
    message ("* Compiz Buildsystem                                       *")
26
 
    message ("*                                                          *")
27
 
    message ("* Version : ${_version}       *")
28
 
    message ("************************************************************")
29
 
endmacro (_print_configure_header)
30
 
 
31
 
macro (_print_configure_footer)
32
 
    message ("************************************************************")
33
 
endmacro (_print_configure_footer)
34
 
 
35
 
 
36
 
macro (_print_configure_results)
37
 
    _print_configure_header ()
38
 
#    message ("\n Optional plugins:")
39
 
    message ("\n Optional features:")
40
 
    _print_result_message ("gtk window decorator" USE_GTK)
41
 
    _print_result_message ("metacity theme support" USE_METACITY)
42
 
    _print_result_message ("gconf schemas" USE_GCONF)
43
 
    _print_result_message ("gnome" USE_GNOME)
44
 
    _print_result_message ("kde4 window decorator" USE_KDE4)
45
 
 
46
 
    _print_configure_footer ()
47
 
endmacro (_print_configure_results)