~ubuntu-branches/ubuntu/utopic/kdevplatform/utopic-proposed

« back to all changes in this revision

Viewing changes to shell/kross/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Scarlett Clark
  • Date: 2014-08-30 03:52:11 UTC
  • mfrom: (0.3.26)
  • Revision ID: package-import@ubuntu.com-20140830035211-wndqlc843eu2v8nk
Tags: 1.7.0-0ubuntu1
* New upstream release
* Add XS-Testsuite: autopkgtest

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
project(krosssupport)
2
 
add_subdirectory(xmltokross)
3
 
 
4
 
get_directory_property(include_DIRS INCLUDE_DIRECTORIES)
5
 
 
6
 
get_directory_property(inclist INCLUDE_DIRECTORIES)
7
 
foreach(inc ${inclist})
8
 
    set(incs ${incs}:${inc})
9
 
endforeach(inc)
10
 
 
11
 
add_custom_target(krossWrappers)
12
 
macro(kdev_create_kross_iface wantImpl interface includes)
13
 
    get_filename_component(weFile ${interface} NAME_WE)
14
 
    set(weFile kross${weFile})
15
 
    set(outPath ${KDevPlatform_SOURCE_DIR}/shell/kross/wrappers/)
16
 
    get_filename_component(ifacePath interface PATH)
17
 
    
18
 
    if(${wantImpl} STREQUAL "TRUE")
19
 
#             message(STATUS "${weFile} has impl")
20
 
        set(theImpl "-impl")
21
 
    else(${wantImpl} STREQUAL "TRUE")
22
 
        set(theImpl)
23
 
    endif(${wantImpl} STREQUAL "TRUE")
24
 
    
25
 
    add_custom_target(${weFile}
26
 
                            rm -rf ~/.kdevduchain && ${CMAKE_CURRENT_BINARY_DIR}/xmltokross/duchaintokross ${theImpl} ${interface}
27
 
                            -I${ifacePath}:${incs} -F${weFile} -i${includes} -D${outPath}
28
 
                            -o${outPath}/${weFile}.cpp
29
 
                    #    DEPENDS ${interface} xmltokross/duchaintokross
30
 
                        )
31
 
    add_dependencies(krossWrappers ${weFile})
32
 
endmacro(kdev_create_kross_iface)
33
 
 
34
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/interfaces/idocument.h interfaces/idocument.h)
35
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/interfaces/iuicontroller.h interfaces/iuicontroller.h)
36
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/interfaces/context.h interfaces/context.h)
37
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/interfaces/contextmenuextension.h interfaces/contextmenuextension.h)
38
 
kdev_create_kross_iface(TRUE  ${KDevPlatform_SOURCE_DIR}/project/projectmodel.h project/projectmodel.h)
39
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/vcs/vcsrevision.h vcs/vcsrevision.h)
40
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/vcs/vcslocation.h vcs/vcslocation.h)
41
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/interfaces/ilanguage.h interfaces/ilanguage.h)
42
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/language/duchain/topducontext.h
43
 
    language/duchain/topducontext.h:language/duchain/parsingenvironment.h:language/interfaces/iproblem.h:language/editor/simplecursor.h)
44
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/language/duchain/ducontext.h
45
 
    language/duchain/ducontext.h:language/duchain/topducontext.h)
46
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/language/duchain/declaration.h
47
 
    language/duchain/declaration.h:language/duchain/declarationid.h:language/duchain/types/indexedtype.h:language/duchain/topducontext.h)
48
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/language/interfaces/iproblem.h language/interfaces/iproblem.h:interfaces/iassistant.h)
49
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/language/duchain/use.h language/duchain/use.h)
50
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/language/duchain/identifier.h language/duchain/identifier.h:language/duchain/indexedstring.h)
51
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/language/duchain/duchainlock.h language/duchain/duchainlock.h)
52
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/project/interfaces/ibuildsystemmanager.h project/interfaces/ibuildsystemmanager.h)
53
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/project/interfaces/iprojectfilemanager.h project/interfaces/iprojectfilemanager.h)
54
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/project/interfaces/iprojectbuilder.h project/interfaces/iprojectbuilder.h)
55
 
kdev_create_kross_iface(FALSE ${KDevPlatform_SOURCE_DIR}/language/interfaces/editorcontext.h language/interfaces/editorcontext.h)
56
 
kdev_create_kross_iface(FALSE ${QT_QTGUI_INCLUDE_DIR}/qtoolbar.h QToolBar)
57