2018-08-12 06:26:29 -07:00
|
|
|
pub_eo_file_target = []
|
|
|
|
|
|
|
|
pub_eo_files = [
|
efl_model : rename all efl_model based classes.
Summary:
As the result of discussion in T7458,
we need to rename all efl_model based classes with efl_XXX_Model sequence.
I've run few vote for this, see V42, V43
few classes are totally renamed as our consideration of misnaming.
| Efl.Model_Loop | Efl.Loop_Model |
| Efl.Model_Item | Efl.Generic_Model |
| Efl.Model_Container | Efl.Container_Model |
| Efl.Model_Container_Item | Efl.Container_Model_Item |
| Efl.Model_Composite | Efl.Composite_Model |
| Efl.Model_Composite_Boolean | Efl.Boolean_Model |
| Efl.Model_Composite_Boolean_Chlidren | Efl.Boolean_Model_Item |
| Efl.Model_Composite_Selection | Efl.Select_Model |
| Efl.Model_Composite_Selection_Chlidren | Efl.Select_Model_Item |
| Efl.Model_View | Efl.View_Model |
| Eio.Model | Efl.Io.Model |
| Efl.Ui.Model_State | Efl.Ui.State_Model |
| Efl.Ui.Model_Size | Efl.Ui.Size_Model |
| Efl.Ui.Model_Exact | Efl.Ui.Exact_Model |
| Efl.Ui.Model_Average | Efl.Ui.Average_Model |
| Efl.Ui.Model_Homogeneous | Efl.Ui.Homogeneous_Model |
I worried about Efl.Io.Model changes, cause it is widely used,
but as I tested, there is no issue found yet.
Eldbus.Model also may can changed Efl.Dbus.Model,
but I cannot found any class who using Efl.Dbus namespace,
so I left it future work.
Test Plan:
Run the Make Test,
it works well except Efl test about selection.
there are class inheritance problem exist in select_model,
I reported it and will fix it in another patch.
Reviewers: cedric, felipealmeida, woohyun, Hermet
Reviewed By: cedric
Subscribers: lauromoura
Tags: #efl, #do_not_merge
Differential Revision: https://phab.enlightenment.org/D7533
2019-01-30 20:35:34 -08:00
|
|
|
'efl_io_model.eo',
|
2018-08-12 06:26:29 -07:00
|
|
|
'efl_io_manager.eo',
|
|
|
|
'eio_sentry.eo'
|
|
|
|
]
|
|
|
|
|
|
|
|
foreach eo_file : pub_eo_files
|
|
|
|
pub_eo_file_target += custom_target('eolian_gen_' + eo_file,
|
|
|
|
input : eo_file,
|
|
|
|
output : [eo_file + '.h'],
|
2018-10-21 06:55:51 -07:00
|
|
|
depfile : eo_file + '.d',
|
2018-08-12 06:26:29 -07:00
|
|
|
install : true,
|
|
|
|
install_dir : dir_package_include,
|
2018-12-03 09:49:47 -08:00
|
|
|
command : eolian_gen + [ '-I', meson.current_source_dir(), eolian_include_directories,
|
2018-08-12 06:26:29 -07:00
|
|
|
'-o', 'h:' + join_paths(
|
|
|
|
meson.current_build_dir(), eo_file + '.h'),
|
|
|
|
'-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
|
2018-10-21 06:55:51 -07:00
|
|
|
'-o', 'd:' + join_paths(meson.current_build_dir(), eo_file + '.d'),
|
|
|
|
'-gchd', '@INPUT@'])
|
2018-08-12 06:26:29 -07:00
|
|
|
endforeach
|
|
|
|
|
|
|
|
pub_eo_types_files = []
|
|
|
|
|
|
|
|
eolian_include_directories += ['-I', meson.current_source_dir()]
|
|
|
|
|
|
|
|
eio_header_src = [
|
|
|
|
'Eio.h',
|
|
|
|
'Eio_Legacy.h',
|
|
|
|
'Eio_Eo.h',
|
|
|
|
'eio_inline_helper.x'
|
|
|
|
]
|
|
|
|
|
|
|
|
eio_src = [
|
|
|
|
'eio_dir.c',
|
|
|
|
'eio_eet.c',
|
|
|
|
'eio_file.c',
|
|
|
|
'efl_io_manager.c',
|
|
|
|
'eio_sentry.c',
|
|
|
|
'eio_main.c',
|
|
|
|
'eio_map.c',
|
|
|
|
'eio_monitor.c',
|
|
|
|
'eio_monitor_poll.c',
|
|
|
|
'eio_single.c',
|
|
|
|
'eio_xattr.c',
|
efl_model : rename all efl_model based classes.
Summary:
As the result of discussion in T7458,
we need to rename all efl_model based classes with efl_XXX_Model sequence.
I've run few vote for this, see V42, V43
few classes are totally renamed as our consideration of misnaming.
| Efl.Model_Loop | Efl.Loop_Model |
| Efl.Model_Item | Efl.Generic_Model |
| Efl.Model_Container | Efl.Container_Model |
| Efl.Model_Container_Item | Efl.Container_Model_Item |
| Efl.Model_Composite | Efl.Composite_Model |
| Efl.Model_Composite_Boolean | Efl.Boolean_Model |
| Efl.Model_Composite_Boolean_Chlidren | Efl.Boolean_Model_Item |
| Efl.Model_Composite_Selection | Efl.Select_Model |
| Efl.Model_Composite_Selection_Chlidren | Efl.Select_Model_Item |
| Efl.Model_View | Efl.View_Model |
| Eio.Model | Efl.Io.Model |
| Efl.Ui.Model_State | Efl.Ui.State_Model |
| Efl.Ui.Model_Size | Efl.Ui.Size_Model |
| Efl.Ui.Model_Exact | Efl.Ui.Exact_Model |
| Efl.Ui.Model_Average | Efl.Ui.Average_Model |
| Efl.Ui.Model_Homogeneous | Efl.Ui.Homogeneous_Model |
I worried about Efl.Io.Model changes, cause it is widely used,
but as I tested, there is no issue found yet.
Eldbus.Model also may can changed Efl.Dbus.Model,
but I cannot found any class who using Efl.Dbus namespace,
so I left it future work.
Test Plan:
Run the Make Test,
it works well except Efl test about selection.
there are class inheritance problem exist in select_model,
I reported it and will fix it in another patch.
Reviewers: cedric, felipealmeida, woohyun, Hermet
Reviewed By: cedric
Subscribers: lauromoura
Tags: #efl, #do_not_merge
Differential Revision: https://phab.enlightenment.org/D7533
2019-01-30 20:35:34 -08:00
|
|
|
'efl_io_model.c',
|
|
|
|
'efl_io_model_private.h',
|
2018-08-12 06:26:29 -07:00
|
|
|
'eio_private.h',
|
|
|
|
'eio_sentry_private.h'
|
|
|
|
]
|
|
|
|
|
|
|
|
linker_args = []
|
|
|
|
|
2018-10-04 09:29:56 -07:00
|
|
|
if sys_windows == true
|
2018-08-12 06:26:29 -07:00
|
|
|
eio_src += ['eio_monitor_win32.c']
|
2018-10-04 09:29:56 -07:00
|
|
|
elif sys_osx == true
|
2018-08-12 06:26:29 -07:00
|
|
|
eio_src += ['eio_monitor_cocoa.c']
|
|
|
|
linker_args = [['-framework', 'CoreServices']]
|
2018-10-04 09:29:56 -07:00
|
|
|
elif sys_linux == true
|
2018-08-12 06:26:29 -07:00
|
|
|
eio_src += ['eio_monitor_inotify.c']
|
2018-10-04 09:29:56 -07:00
|
|
|
elif sys_bsd == true
|
2018-08-12 06:26:29 -07:00
|
|
|
eio_src += ['eio_monitor_kevent.c']
|
|
|
|
endif
|
|
|
|
|
2020-05-10 03:47:58 -07:00
|
|
|
eio_deps = [ecore, ecore_file, eet, eo, eina, efl, emile, efreet]
|
2018-08-12 06:26:29 -07:00
|
|
|
eio_pub_deps = [eina, eet]
|
|
|
|
|
|
|
|
eio_lib = library('eio',
|
|
|
|
eio_src, pub_eo_file_target,
|
|
|
|
dependencies: [eina, eo, efl, m, eio_deps],
|
|
|
|
include_directories : config_dir + [include_directories('.')],
|
|
|
|
install: true,
|
2020-05-18 03:13:59 -07:00
|
|
|
c_args : package_c_args,
|
2018-08-12 06:26:29 -07:00
|
|
|
link_args : linker_args,
|
|
|
|
version : meson.project_version()
|
|
|
|
)
|
|
|
|
|
|
|
|
eio = declare_dependency(
|
|
|
|
include_directories: [include_directories('.')],
|
|
|
|
link_with: eio_lib,
|
|
|
|
sources : pub_eo_file_target + priv_eo_file_target,
|
|
|
|
dependencies: eio_pub_deps,
|
|
|
|
)
|
|
|
|
|
2019-03-14 09:43:51 -07:00
|
|
|
|
|
|
|
if get_option('install-eo-files')
|
|
|
|
install_data(pub_eo_files + pub_eo_types_files,
|
|
|
|
install_dir: join_paths(eolian_include_dir, package_version_name)
|
|
|
|
)
|
|
|
|
endif
|
2018-08-12 06:26:29 -07:00
|
|
|
|
|
|
|
install_headers(eio_header_src,
|
|
|
|
install_dir : dir_package_include,
|
|
|
|
)
|