1elementary_test_src = [
2  'test.c',
3  'test_explode.c',
4  'test_explode.h',
5  'test_3d.c',
6  'test_access.c',
7  'test_actionslider.c',
8  'test_anim.c',
9  'test_bg.c',
10  'test_box.c',
11  'test_bubble.c',
12  'test_button.c',
13  'test_ui_button.c',
14  'test_calendar.c',
15  'test_check.c',
16  'test_clock.c',
17  'test_cnp.c',
18  'test_code.c',
19  'test_colorselector.c',
20  'test_colorclass.c',
21  'test_combobox.c',
22  'test_config.c',
23  'test_conform.c',
24  'test_conform_indicator.c',
25  'test_ctxpopup.c',
26  'test_cursor.c',
27  'test_datetime.c',
28  'test_dayselector.c',
29  'test_disable.c',
30  'test_diskselector.c',
31  'test_dnd.c',
32  'test_efl_anim_alpha.c',
33  'test_efl_anim_rotate.c',
34  'test_efl_anim_scale.c',
35  'test_efl_anim_translate.c',
36  'test_efl_anim_group_parallel.c',
37  'test_efl_anim_group_sequential.c',
38  'test_efl_anim_pause.c',
39  'test_efl_anim_repeat.c',
40  'test_efl_anim_start_delay.c',
41  'test_efl_anim_interpolator.c',
42  'test_eio.c',
43  'test_entry.c',
44  'test_entry_anchor.c',
45  'test_entry_anchor2.c',
46  'test_events.c',
47  'test_evas_mask.c',
48  'test_evas_map.c',
49  'test_efl_gfx_mapping.c',
50  'test_evas_snapshot.c',
51  'test_external.c',
52  'test_fileselector_button.c',
53  'test_fileselector.c',
54  'test_fileselector_entry.c',
55  'test_flip.c',
56  'test_flip_page.c',
57  'test_flip_page_eo.c',
58  'test_flipselector.c',
59  'test_floating.c',
60  'test_focus.c',
61  'test_focus_custom_chain.c',
62  'test_focus_policy.c',
63  'test_focus_style.c',
64  'test_gengrid.c',
65  'test_genlist.c',
66  'test_gesture_layer.c',
67  'test_gesture_layer2.c',
68  'test_gesture_layer3.c',
69  'test_gfx_filters.c',
70  'test_glview_simple.c',
71  'test_glview.c',
72  'test_glview_manygears.c',
73  'test_grid.c',
74  'test_ui_table_static.c',
75  'test_ui_stack.c',
76  'test_hover.c',
77  'test_hoversel.c',
78  'test_icon.c',
79  'test_icon_desktops.c',
80  'test_icon_animated.c',
81  'test_image.c',
82  'test_ui_image.c',
83  'test_index.c',
84  'test_inwin.c',
85  'test_label.c',
86  'test_launcher.c',
87  'test_layout.c',
88  'test_list.c',
89  'test_map.c',
90  'test_main_menu.c',
91  'test_menu.c',
92  'test_multi.c',
93  'test_multibuttonentry.c',
94  'test_naviframe.c',
95  'test_naviframe_complex.c',
96  'test_notify.c',
97  'test_panel.c',
98  'test_panes.c',
99  'test_ui_panes.c',
100  'test_ui_panel.c',
101  'test_ui_spotlight.c',
102  'test_ui_radio.c',
103  'test_part_bg.c',
104  'test_part_shadow.c',
105  'test_photo.c',
106  'test_photocam.c',
107  'test_popup.c',
108  'test_prefs.c',
109  'test_progressbar.c',
110  'test_ui_progressbar.c',
111  'test_radio.c',
112  'test_scaling.c',
113  'test_scroller.c',
114  'test_ui_scroller.c',
115  'test_segment_control.c',
116  'test_separator.c',
117  'test_slider.c',
118  'test_ui_slider.c',
119  'test_ui_slider_interval.c',
120  'test_ui_spin.c',
121  'test_ui_spin_button.c',
122  'test_ui_datepicker.c',
123  'test_ui_timepicker.c',
124  'test_ui_tags.c',
125  'test_slideshow.c',
126  'test_spinner.c',
127  'test_store.c',
128  'test_sys_notify.c',
129  'test_systray.c',
130  'test_table.c',
131  'test_thumb.c',
132  'test_toolbar.c',
133  'test_tooltip.c',
134  'test_transit.c',
135  'test_transit_bezier.c',
136  'test_ui_box.c',
137  'test_ui_box_stack.c',
138  'test_ui_clock.c',
139  'test_ui_table.c',
140  'test_ui_popup.c',
141  'test_ui_textpath.c',
142  'test_canvas_textblock.c',
143  'test_video.c',
144  'test_weather.c',
145  'test_web.c',
146  'test_win_inline.c',
147  'test_win_keygrab.c',
148  'test_win_socket.c',
149  'test_win_plug.c',
150  'test_win_state.c',
151  'test_win_wm_rotation.c',
152  'test_win_dialog.c',
153  'test_win_modal.c',
154  'test_efl_ui_text.c',
155  'test_win_stack.c',
156  'test_win_indicator.c',
157  'test_gesture_framework.c',
158  'test_ui_tab_pager.c',
159  'test_ui_relative_container.c',
160  'test_ui_collection.c',
161  'test_ui_collection_view.c',
162  'test_ui_items.c',
163  'test_ui_frame.c',
164  'test_ui_separator.c',
165  'test_efl_ui_vg_animation.c',
166  'test_efl_gfx_vg_value_provider.c',
167  'test.h'
168]
169
170link_args = []
171if sys_windows == false
172  link_args += ['-rdynamic', '-fPIC']
173  package_c_args =  package_c_args + ['-fPIC']
174endif
175if sys_windows == false and sys_sun == false
176  link_args += ['-pie']
177endif
178
179elementary_test = executable('elementary_test',
180        elementary_test_src,
181        dependencies: [elementary, intl] + elementary_deps + elementary_pub_deps,
182        install: true,
183        c_args : package_c_args + [
184          '-Delementary_test_BIN_DIR="'+dir_bin+'"',
185          '-Delementary_test_LIB_DIR="'+dir_lib+'"',
186          '-Delementary_test_DATA_DIR="'+join_paths(dir_data,'elementary')+'"'
187        ],
188        link_args: link_args
189)
190
191elementary_config_src = [
192   'config.c'
193]
194
195elementary_config = executable('elementary_config',
196        elementary_config_src,
197        dependencies: [elementary, intl] + elementary_deps + elementary_pub_deps,
198        install: true,
199        c_args : package_c_args,
200        link_args: link_args
201)
202
203if sys_windows == false
204  elementary_quicklaunch_src = [
205     'quicklaunch.c'
206  ]
207
208  elementary_quicklaunch = executable('elementary_quicklaunch',
209          elementary_quicklaunch_src,
210          dependencies: [elementary, intl] + elementary_deps + elementary_pub_deps,
211          install: true,
212          c_args : package_c_args,
213          link_args: link_args
214  )
215endif
216
217elementary_codegen_src = [
218   'elementary_codegen.c'
219]
220
221elementary_codegen = executable('elementary_codegen',
222        elementary_codegen_src,
223        dependencies: [elementary, intl] + elementary_deps + elementary_pub_deps,
224        install: true,
225        c_args : package_c_args,
226        link_args: link_args
227)
228
229asan_option =[]
230if get_option('b_sanitize') == 'address'
231  asan_option= 'ASAN_OPTIONS=detect_leaks=0'
232endif
233
234if meson.is_cross_build()
235  elementary_codegen_exe = [find_program('elementary_codegen', native: true)]
236else
237  elementary_codegen_exe = [env, asan_option, 'EFL_RUN_IN_TREE=1', elementary_codegen.full_path()]
238endif
239
240elm_prefs_cc_src = [
241   'elm_prefs_cc.h',
242   'elm_prefs_cc.c',
243   'elm_prefs_cc_mem.c',
244   'elm_prefs_cc_out.c',
245   'elm_prefs_cc_parse.c',
246   'elm_prefs_cc_handlers.c'
247]
248
249elm_prefs_cc = executable('elm_prefs_cc',
250        elm_prefs_cc_src,
251        dependencies: [elementary, intl] + elementary_deps + elementary_pub_deps,
252        install: true,
253        c_args : package_c_args,
254        link_args: link_args
255)
256
257if meson.is_cross_build()
258  _elm_prefs_cc = find_program('elm_prefs_cc', native: true)
259  elm_prefs_cc_path = _elm_prefs_cc.path()
260  elm_prefs_cc_exe = [_elm_prefs_cc]
261else
262  elm_prefs_cc_exe = [env, asan_option, 'EFL_RUN_IN_TREE=1', elm_prefs_cc.full_path()]
263endif
264
265if sys_windows == false
266  elementary_run_src = [
267     'run.c'
268  ]
269
270  elementary_run = executable('elementary_run',
271          elementary_run_src,
272          dependencies: [elementary, intl] + elementary_deps + elementary_pub_deps,
273          install: true,
274          c_args : package_c_args,
275          link_args: link_args
276  )
277endif
278
279elementary_perf_src = [
280   'perf.c',
281   'perf_rnd.c',
282   'perf_test_01.c',
283   'perf_test_02.c',
284   'perf_test_03.c',
285   'perf_test_04.c',
286   'perf_test_05.c',
287   'perf_test_06.c'
288]
289
290elementary_perf = executable('elementary_perf',
291        elementary_perf_src,
292        dependencies: [elementary, intl] + elementary_deps + elementary_pub_deps,
293        install: true,
294        c_args : package_c_args + [
295          '-Delementary_test_BIN_DIR="'+dir_bin+'"',
296          '-Delementary_test_LIB_DIR="'+dir_lib+'"',
297          '-Delementary_test_DATA_DIR="'+join_paths(dir_data,'elementary')+'"'
298        ],
299        link_args: link_args
300)
301
302