aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples/elementary/meson.build
blob: 67286d95f80263dbacbc404427a2106addc31350 (plain) (blame)
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
examples = [
  'actionslider_example_01',
  'bg_example_01',
  'bg_example_02',
  'bg_example_03',
  'box_example_02',
  'bubble_example_01',
  'button_example_00',
  'button_example_01',
  'calendar_example_01',
  'calendar_example_02',
  'calendar_example_03',
  'calendar_example_04',
  'calendar_example_05',
  'calendar_example_06',
  'check_example_01',
  'clock_example',
  'colorselector_example_01',
  'conformant_example_01',
  'conformant_example_02',
  'combobox_example_01',
  'ctxpopup_example_01',
  'datetime_example',
  'dayselector_example',
  'diskselector_example_01',
  'diskselector_example_02',
  'entry_example',
  'fileselector_button_example',
  'fileselector_entry_example',
  'fileselector_example',
  'fileviewlist',
  'filemvc',
  'flip_example_01',
  'flipselector_example',
  'frame_example_01',
  'general_funcs_example',
  'gengrid_example',
  'genlist_example_01',
  'genlist_example_02',
  'genlist_example_03',
  'genlist_example_04',
  'genlist_example_05',
  'glview_example_01',
  'hover_example_01',
  'hoversel_example_01',
  'icon_example_01',
  'image_example_01',
  'index_example_01',
  'index_example_02',
  'inwin_example',
  'label_example_01',
  'label_example_02',
  'label_example_03',
  'layout_example_01',
  'layout_example_02',
  'layout_example_03',
  'layout_property_bind',
  'list_example_01',
  'list_example_02',
  'list_example_03',
  'location_example_01',
  'map_example_01',
  'map_example_02',
  'map_example_03',
  'mapbuf_example',
  'menu_example_01',
  'naviframe_example',
  'notify_example_01',
  'panes_example',
  'panel_example_01',
  'photocam_example_01',
  'prefs_example_01',
  'prefs_example_02',
  'prefs_example_03',
  'popup_example_01',
  'popup_example_02',
  'popup_example_03',
  'progressbar_example',
  'radio_example_01',
  'radio_example_02',
  'segment_control_example',
  'separator_example_01',
  'slider_example',
  'slideshow_example',
  'spinner_example',
  'scroller_example_01',
  'table_example_01',
  'table_example_02',
  'theme_example_01',
  'theme_example_02',
  'thumb_example_01',
  'toolbar_example_01',
  'toolbar_example_02',
  'toolbar_example_03',
  'transit_example_01',
  'transit_example_02',
  'transit_example_03',
  'transit_example_04',
  'web_example_01',
  'web_example_02',
  'win_example',
  'track_example_01',
  'evas3d_object_on_button_example',
  'evas3d_scene_on_button_example',
  'evas3d_map_example',
  'efl_thread_1',
  'efl_thread_2',
  'efl_thread_3',
  'efl_thread_4',
  'efl_thread_5',
  'efl_thread_6',
  'efl_ui_list_example_1',
  'efl_ui_list_view_example_1',
  'efl_ui_list_view_example_2',
  'efl_ui_list_view_example_3',
  'efl_canvas_layout_text',
  'efl_ui_theme_example_01',
  'efl_ui_theme_example_02'
]

foreach example : examples
  executable(example, example + '.c', dependencies: [elementary, ecore, eio])
endforeach

edc_files = [
  'codegen_example.edc',
  'efl_ui_theme_example.edc'
]

themes = []

foreach edc_file : edc_files
   themes += custom_target('edje_cc_' + edc_file,
    depends : edje_depends,
    input : edc_file,
    output : '@BASENAME@.edj',
    command : edje_cc_exe + ['-beta',
              '-id', meson.current_source_dir(),
              '-fd', meson.current_source_dir(),
              '-sd', meson.current_source_dir(),
              '-vd', meson.current_source_dir(),
              '-dd', meson.current_source_dir(),
              '-md', meson.current_source_dir(),
              '-td', meson.current_source_dir(),
              '@INPUT@', '@OUTPUT@'],
   )
endforeach


codegen = custom_target('elementary_codegen_examples',
    depends : [themes, elementary_codegen],
    input : themes[0],
    output : ['codegen_example_generated.c', 'codegen_example_generated.h'],
    command : elementary_codegen_exe + ['-p=codegen_example', '@INPUT@', 'elm/example/mylayout/default', '@OUTPUT0@', '@OUTPUT1@'],
)

executable('codegen_example',
  ['codegen_example.c'] + [codegen],
  dependencies: [elementary],
  include_directories : include_directories('..')
)

subdir('sphere_hunter')
subdir('performance')