forked from enlightenment/efl
meson: lets add cxx examples
Summary: it appears they have not been part of this before. Now they are, and two broken examples are fixed. Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8735
This commit is contained in:
parent
fb82b51d6a
commit
c95662cbab
|
@ -121,6 +121,35 @@ examples = [
|
||||||
foreach example : examples
|
foreach example : examples
|
||||||
executable(example, example + '.c', dependencies: [elementary, ecore, eio])
|
executable(example, example + '.c', dependencies: [elementary, ecore, eio])
|
||||||
endforeach
|
endforeach
|
||||||
|
if get_option('bindings').contains('cxx')
|
||||||
|
cxx_examples = [
|
||||||
|
'bg_cxx_example_01',
|
||||||
|
'bg_cxx_example_02',
|
||||||
|
'box_cxx_example_02',
|
||||||
|
'button_cxx_example_00',
|
||||||
|
'button_cxx_example_01',
|
||||||
|
'calendar_cxx_example_01',
|
||||||
|
'calendar_cxx_example_02',
|
||||||
|
'calendar_cxx_example_03',
|
||||||
|
'calendar_cxx_example_04',
|
||||||
|
'calendar_cxx_example_05',
|
||||||
|
'clock_cxx_example',
|
||||||
|
'icon_cxx_example_01',
|
||||||
|
'menu_cxx_example_01',
|
||||||
|
'popup_cxx_example',
|
||||||
|
'radio_cxx_example_01',
|
||||||
|
'slider_cxx_example',
|
||||||
|
'spinner_cxx_example',
|
||||||
|
'table_cxx_example_01',
|
||||||
|
'table_cxx_example_02',
|
||||||
|
'toolbar_cxx_example_01',
|
||||||
|
]
|
||||||
|
|
||||||
|
foreach example : cxx_examples
|
||||||
|
executable(example, example + '.cc', dependencies: [elementary_cxx])
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
edc_files = [
|
edc_files = [
|
||||||
'codegen_example.edc',
|
'codegen_example.edc',
|
||||||
|
|
|
@ -15,7 +15,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
|
||||||
|
|
||||||
efl::ui::Table table(instantiate, win);
|
efl::ui::Table table(instantiate, win);
|
||||||
win.content_set(table);
|
win.content_set(table);
|
||||||
table.pack_padding_set(5, 5, true);
|
table.content_padding_set(5, 5, true);
|
||||||
// FIXME
|
// FIXME
|
||||||
// table.homogeneous_set(true);
|
// table.homogeneous_set(true);
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
|
||||||
|
|
||||||
efl::ui::Table table(instantiate, win);
|
efl::ui::Table table(instantiate, win);
|
||||||
win.content_set(table);
|
win.content_set(table);
|
||||||
table.pack_padding_set(5, 5, true);
|
table.content_padding_set(5, 5, true);
|
||||||
|
|
||||||
efl::canvas::Rectangle rect(instantiate, win);
|
efl::canvas::Rectangle rect(instantiate, win);
|
||||||
rect.color_set(255, 0, 0, 255);
|
rect.color_set(255, 0, 0, 255);
|
||||||
|
|
Loading…
Reference in New Issue