summaryrefslogtreecommitdiff
path: root/dev-util/kdevelop-php/files/kdevelop-php-1.2.0-dbustests.patch
blob: 49402f46365f9c05fdf16efead97571c89efc6f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
--- kdevelop-php-9999/completion/tests/CMakeLists.txt
+++ kdevelop-php-9999/completion/tests/CMakeLists.txt
@@ -8,16 +8,8 @@
 
 set(completiontest_SRCS test_completion.cpp
     ../../duchain/tests/duchaintestbase.cpp)
-kde4_add_unit_test(completiontest ${completiontest_SRCS})
-target_link_libraries(completiontest
-    kdev4phpcompletion
-    kdev4phpduchain
-    kdev4phpparser
-    ${QT_QTTEST_LIBRARY}
-    ${KDEVPLATFORM_TESTS_LIBRARIES}
-    ${KDEVPLATFORM_LANGUAGE_LIBRARIES}
-)
 # hack to make ../../duchain/tests/duchaintestbase.h use the correct EXPORT tags when compiling with MinGW
+
 if (MINGW)
     set_property(TARGET completiontest APPEND_STRING PROPERTY COMPILE_FLAGS " -DMAKE_KDEV4PHPDUCHAIN_LIB")
 endif (MINGW)
@@ -25,15 +17,7 @@
 
 set(completionbench_SRCS bench_completion.cpp
     ../../duchain/tests/duchaintestbase.cpp)
-kde4_add_unit_test(completionbenchmark ${completionbench_SRCS})
-target_link_libraries(completionbenchmark
-    kdev4phpcompletion
-    kdev4phpduchain
-    kdev4phpparser
-    ${QT_QTTEST_LIBRARY}
-    ${KDEVPLATFORM_TESTS_LIBRARIES}
-    ${KDEVPLATFORM_LANGUAGE_LIBRARIES}
-)
+
 # hack to make ../../duchain/tests/duchaintestbase.h use the correct EXPORT tags when compiling with MinGW
 if (MINGW)
     set_property(TARGET completionbenchmark APPEND_STRING PROPERTY COMPILE_FLAGS " -DMAKE_KDEV4PHPDUCHAIN_LIB")

--- kdevelop-php-9999/duchain/tests/CMakeLists.txt
+++ kdevelop-php-9999-patched/duchain/tests/CMakeLists.txt
@@ -9,14 +9,7 @@
 set(duchain_SRCS
     duchain.cpp
     duchaintestbase.cpp)
-kde4_add_unit_test(duchain ${duchain_SRCS})
-target_link_libraries(duchain
-    kdev4phpduchain
-    kdev4phpparser
-    ${QT_QTTEST_LIBRARY}
-    ${KDEVPLATFORM_TESTS_LIBRARIES}
-    ${KDEVPLATFORM_LANGUAGE_LIBRARIES}
-)
+
 # hack to make ../duchaintestbase.h use the correct EXPORT tags when compiling with MinGW
 if (MINGW)
     set_property(TARGET duchain APPEND_STRING PROPERTY COMPILE_FLAGS " -DMAKE_KDEV4PHPDUCHAIN_LIB")
@@ -26,14 +19,7 @@
 set(expressionparser_SRCS
     expressionparser.cpp
     duchaintestbase.cpp)
-kde4_add_unit_test(expressionparser ${expressionparser_SRCS})
-target_link_libraries(expressionparser
-    kdev4phpduchain
-    kdev4phpparser
-    ${QT_QTTEST_LIBRARY}
-    ${KDEVPLATFORM_TESTS_LIBRARIES}
-    ${KDEVPLATFORM_LANGUAGE_LIBRARIES}
-)
+
 # hack to make ../duchaintestbase.h use the correct EXPORT tags when compiling with MinGW
 if (MINGW)
     set_property(TARGET expressionparser APPEND_STRING PROPERTY COMPILE_FLAGS " -DMAKE_KDEV4PHPDUCHAIN_LIB")
@@ -43,15 +29,7 @@
 set(uses_SRCS
     uses.cpp
     duchaintestbase.cpp)
-kde4_add_unit_test(uses ${uses_SRCS})
-target_link_libraries(uses
-    kdev4phpduchain
-    kdev4phpparser
-    ${QT_QTTEST_LIBRARY}
-    ${KDEVPLATFORM_INTERFACES_LIBRARIES}
-    ${KDEVPLATFORM_TESTS_LIBRARIES}
-    ${KDEVPLATFORM_LANGUAGE_LIBRARIES}
-)
+
 # hack to make ../duchaintestbase.h use the correct EXPORT tags when compiling with MinGW
 if (MINGW)
     set_property(TARGET uses APPEND_STRING PROPERTY COMPILE_FLAGS " -DMAKE_KDEV4PHPDUCHAIN_LIB")
@@ -62,15 +40,7 @@
     benchmarks.cpp
     duchaintestbase.cpp
 )
-kde4_add_unit_test(benchmarks ${benchmarks_SRCS})
-target_link_libraries(benchmarks
-    kdev4phpduchain
-    kdev4phpparser
-    ${QT_QTTEST_LIBRARY}
-    ${KDEVPLATFORM_INTERFACES_LIBRARIES}
-    ${KDEVPLATFORM_TESTS_LIBRARIES}
-    ${KDEVPLATFORM_LANGUAGE_LIBRARIES}
-)
+
 # hack to make ../duchaintestbase.h use the correct EXPORT tags when compiling with MinGW
 if (MINGW)
     set_property(TARGET benchmarks APPEND_STRING PROPERTY COMPILE_FLAGS " -DMAKE_KDEV4PHPDUCHAIN_LIB")
@@ -81,15 +51,7 @@
     duchain_multiplefiles.cpp
     duchaintestbase.cpp
 )
-kde4_add_unit_test(duchain_multiplefiles ${duchain_multiplefiles_SRCS})
-target_link_libraries(duchain_multiplefiles
-    kdev4phpduchain
-    kdev4phpparser
-    ${QT_QTTEST_LIBRARY}
-    ${KDEVPLATFORM_INTERFACES_LIBRARIES}
-    ${KDEVPLATFORM_TESTS_LIBRARIES}
-    ${KDEVPLATFORM_LANGUAGE_LIBRARIES}
-)
+
 # hack to make ../duchaintestbase.h use the correct EXPORT tags when compiling with MinGW
 if (MINGW)
     set_property(TARGET duchain_multiplefiles APPEND_STRING PROPERTY COMPILE_FLAGS " -DMAKE_KDEV4PHPDUCHAIN_LIB")