Compare commits

...

3 Commits

Author SHA1 Message Date
Marcel Hollerbach c01800d968 wip 2018-11-02 12:35:14 +01:00
Marcel Hollerbach 1464e011db legacy-examples: remove include of config.h
when beta defines are needed, then those are now provided in the file
2018-11-02 12:34:31 +01:00
Marcel Hollerbach 2402ed91e7 examples: partly sort the unsorted
there is now examples and legacy-examples.

legacy-examples is containing all the examples that are partly using
legacy API.

examples is again split into the 4 language of our bindings, the
examples purly using new api (Except the init stuff somethings) is
located there.
2018-11-02 12:34:31 +01:00
749 changed files with 1818 additions and 4193 deletions

View File

@ -0,0 +1,34 @@
ecore_examples = [
'efl_io_buffered_stream_example',
'efl_io_copier_example',
'efl_io_copier_simple_example',
'efl_io_queue_example',
'efl_net_control_example',
'efl_net_dialer_http_example',
'efl_net_dialer_simple_example',
'efl_net_dialer_udp_example',
'efl_net_dialer_unix_example',
'efl_net_dialer_websocket_autobahntestee',
'efl_net_dialer_websocket_example',
'efl_net_ip_address_example',
'efl_net_server_example',
'efl_net_server_simple_example',
'efl_net_session_example',
'efl_net_socket_ssl_dialer_example',
'efl_net_socket_ssl_server_example',
]
if build_machine.system() == 'windows'
ecore_examples += 'efl_net_dialer_windows_example'
endif
ecore = dependency('ecore-con')
foreach example_src : ecore_examples
file = example_src + '.c'
executable(example_src,
file,
dependencies: ecore,
c_args : beta_defines
)
endforeach

View File

@ -0,0 +1,16 @@
eio_examples = [
'efl_io_manager_ls',
'efl_io_manager_open',
'efl_io_manager_open_multi',
]
eio = [dependency('eio'), dependency('ecore')]
foreach example_src : eio_examples
file = example_src + '.c'
executable(example_src,
file,
dependencies: eio,
c_args : beta_defines
)
endforeach

View File

@ -0,0 +1,20 @@
elementary_examples = [
'efl_ui_list_example_1',
'efl_ui_scroller_example',
'efl_ui_view_list_example_1',
'efl_ui_view_list_example_2',
'efl_ui_view_list_example_3'
]
#'efl_ui_view_list_example.edc'
elementary = [dependency('elementary')]
foreach example_src : elementary_examples
file = example_src + '.c'
executable(example_src,
file,
dependencies: elementary,
c_args : beta_defines
)
endforeach

11
examples/c/meson.build Normal file
View File

@ -0,0 +1,11 @@
project('efl-c-examples',
'c',
version: '1.0'
)
beta_defines = ['-DEFL_EO_API_SUPPORT=1', '-DEFL_BETA_API_SUPPORT=1']
subdir('ecore')
subdir('eio')
subdir('elementary')

View File

@ -7,7 +7,6 @@
#include <stdio.h>
#include <Eina.hh>
#include <iterator>
#include <algorithm>

View File

@ -0,0 +1,14 @@
src = [
'eina_cxx_list_01',
'eina_cxx_thread_01',
]
eina_cxx = [dependency('eina-cxx'), dependency('eo-cxx'), dependency('ecore')]
foreach file : src
executable(file,
file + '.cc',
dependencies: eina_cxx,
cpp_args : beta_defines
)
endforeach

View File

@ -0,0 +1,32 @@
src = [
'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',
]
dep = [dependency('elementary-cxx')]
foreach file : src
executable(file,
file + '.cc',
dependencies: dep,
cpp_args : beta_defines
)
endforeach

View File

@ -0,0 +1,13 @@
src = [
'evas_cxx_rectangle',
]
dep = [dependency('evas-cxx')]
foreach file : src
executable(file,
file + '.cc',
dependencies: dep,
cpp_args : beta_defines
)
endforeach

12
examples/cxx/meson.build Normal file
View File

@ -0,0 +1,12 @@
project('efl-cxx-examples',
'cpp',
version: '1.0'
)
beta_defines = ['-DEFL_EO_API_SUPPORT=1', '-DEFL_BETA_API_SUPPORT=1']
subdir('eina')
subdir('elementary')
subdir('evas')
#subdir('eolian_cxx')

Some files were not shown because too many files have changed in this diff Show More