~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

Viewing changes to examples/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): CI Train Bot
  • Date: 2015-05-12 13:12:55 UTC
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: package-import@ubuntu.com-20150512131255-y7z12i8n4pbvo70x
Tags: upstream-0.13.0+15.10.20150512
ImportĀ upstreamĀ versionĀ 0.13.0+15.10.20150512

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
)
17
17
 
18
18
add_library(exampleserverconfig STATIC
 
19
  server_example_canonical_window_manager.cpp
19
20
  server_example_display_configuration_policy.cpp
20
21
  server_example_input_event_filter.cpp
21
22
  server_example_log_options.cpp
22
23
  server_example_input_filter.cpp
23
 
  server_example_fullscreen_placement_strategy.cpp
24
24
  server_example_host_lifecycle_event.cpp
25
 
  server_example_window_manager.cpp
 
25
  server_example_tiling_window_manager.cpp
26
26
  server_example_window_management.cpp
 
27
  server_example_custom_compositor.cpp
 
28
  server_example_adorning_compositor.cpp
27
29
)
28
30
 
29
31
target_link_libraries(eglapp
30
32
  mirclient
31
33
  ${EGL_LIBRARIES}
32
34
  ${GLESv2_LIBRARIES}
 
35
  )
 
36
 
 
37
mir_add_wrapped_executable(mir_demo_client_animated_cursor
 
38
  animated_cursor_demo_client.c
 
39
)
 
40
target_link_libraries(mir_demo_client_animated_cursor
 
41
  eglapp
33
42
)
34
43
mir_add_wrapped_executable(mir_demo_client_eglflash
35
44
  eglflash.c
43
52
target_link_libraries(mir_demo_client_egltriangle
44
53
  eglapp
45
54
)
 
55
mir_add_wrapped_executable(mir_demo_client_target
 
56
  target.c
 
57
)
 
58
target_link_libraries(mir_demo_client_target
 
59
  eglapp
 
60
)
46
61
mir_add_wrapped_executable(mir_demo_client_eglcounter
47
62
  eglcounter.cpp
48
63
)
68
83
  eglapp
69
84
)
70
85
 
 
86
mir_add_wrapped_executable(mir_demo_client_tooltip
 
87
  tooltip.c
 
88
)
 
89
target_link_libraries(mir_demo_client_tooltip
 
90
  eglapp
 
91
)
 
92
 
71
93
mir_add_wrapped_executable(mir_demo_client_basic
72
94
  basic.c
73
95
)
95
117
mir_add_wrapped_executable(mir_demo_client_display_config demo_client_display_config.c)
96
118
target_link_libraries(mir_demo_client_display_config eglapp)
97
119
 
 
120
mir_add_wrapped_executable(mir_demo_client_eglsquare eglsquare.cpp)
 
121
target_link_libraries(mir_demo_client_eglsquare eglapp)
 
122
 
98
123
mir_add_wrapped_executable(mir_demo_client_flicker
99
124
  flicker.c
100
125
)
172
197
    mircommon
173
198
)
174
199
 
175
 
# FIXME: Bug not fixed yet.
176
 
if (MIR_ENABLE_TESTS AND MIR_TEST_CLIENT_ABI)
 
200
if (MIR_ENABLE_TESTS)
177
201
  # Regression tests for LP: #1415321
178
202
 
179
203
  # To see reasons for failure:  ctest -V -R Clients-only-use-client-symbols
180
 
  add_test(NAME Clients-only-use-client-symbols
 
204
  mir_add_test(NAME Clients-only-use-client-symbols
181
205
    WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
182
206
    COMMAND /bin/sh -c "!(nm -u .mir_demo_client_* mir_demo_client* | grep -v @@MIR_CLIENT | grep 'U mir_')"
183
207
  )
184
208
 
 
209
# We use a slightly weaker version of the test with clang as that generates spurious NEEDED
 
210
if (NOT "${CMAKE_CXX_COMPILER}" MATCHES "clang")
185
211
  # To see reasons for failure:  ctest -V -R Clients-only-use-client-ABI
186
 
  add_test(NAME Clients-only-use-client-ABI
 
212
  mir_add_test(NAME Clients-only-use-client-ABI
187
213
    WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
188
214
    COMMAND /bin/sh -c "!(objdump -p .mir_demo_client_* mir_demo_client*  | grep NEEDED | grep libmir | grep -v libmirclient)"
189
215
  )
 
216
else()
 
217
  # To see reasons for failure:  ctest -V -R Clients-only-use-client-ABI
 
218
  mir_add_test(NAME Clients-only-use-client-ABI
 
219
    WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
 
220
    COMMAND /bin/sh -c "!(nm -u .mir_demo_client_* mir_demo_client* | grep -v @@MIR_CLIENT | grep @@MIR_)"
 
221
  )
 
222
endif ()
190
223
endif ()