2017-12-13 06:36:21 -08:00
|
|
|
|
|
|
|
efl_custom_exports_mono_files = \
|
|
|
|
lib/efl_mono/efl_custom_exports_mono.c
|
|
|
|
|
|
|
|
efl_eo_mono_files = \
|
|
|
|
bindings/mono/eo_mono/iwrapper.cs \
|
2019-01-15 23:29:56 -08:00
|
|
|
bindings/mono/eo_mono/FunctionWrapper.cs \
|
|
|
|
bindings/mono/eo_mono/NativeModule.cs \
|
2017-12-13 06:36:21 -08:00
|
|
|
bindings/mono/eo_mono/workaround.cs
|
|
|
|
|
2019-01-15 23:29:56 -08:00
|
|
|
if HAVE_WIN32
|
|
|
|
|
|
|
|
efl_eo_mono_files += \
|
|
|
|
bindings/mono/eo_mono/FunctionWrapper_Windows.cs \
|
|
|
|
bindings/mono/eo_mono/NativeModule_Windows.cs
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
efl_eo_mono_files += \
|
|
|
|
bindings/mono/eo_mono/FunctionWrapper_Unix.cs \
|
|
|
|
bindings/mono/eo_mono/NativeModule_Unix.cs
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2017-12-13 06:36:21 -08:00
|
|
|
efl_eina_mono_files = \
|
|
|
|
bindings/mono/eina_mono/eina_config.cs \
|
|
|
|
bindings/mono/eina_mono/eina_array.cs \
|
|
|
|
bindings/mono/eina_mono/eina_hash.cs \
|
|
|
|
bindings/mono/eina_mono/eina_list.cs \
|
|
|
|
bindings/mono/eina_mono/eina_inarray.cs \
|
|
|
|
bindings/mono/eina_mono/eina_inlist.cs \
|
|
|
|
bindings/mono/eina_mono/eina_iterator.cs \
|
|
|
|
bindings/mono/eina_mono/eina_container_common.cs \
|
|
|
|
bindings/mono/eina_mono/eina_common.cs \
|
|
|
|
bindings/mono/eina_mono/eina_log.cs \
|
|
|
|
bindings/mono/eina_mono/eina_binbuf.cs \
|
|
|
|
bindings/mono/eina_mono/eina_slice.cs \
|
|
|
|
bindings/mono/eina_mono/eina_stringshare.cs \
|
|
|
|
bindings/mono/eina_mono/eina_error.cs \
|
2018-01-26 12:01:03 -08:00
|
|
|
bindings/mono/eina_mono/eina_value.cs \
|
2018-04-20 14:17:26 -07:00
|
|
|
bindings/mono/eina_mono/eina_promises.cs \
|
2018-05-17 20:50:37 -07:00
|
|
|
bindings/mono/eina_mono/eina_accessor.cs \
|
2018-01-26 12:01:03 -08:00
|
|
|
bindings/mono/eina_mono/eina_strbuf.cs
|
2017-12-13 06:36:21 -08:00
|
|
|
|
|
|
|
efl_eldbus_mono_files = \
|
|
|
|
bindings/mono/eldbus_mono/eldbus_common.cs \
|
|
|
|
bindings/mono/eldbus_mono/eldbus_config.cs \
|
|
|
|
bindings/mono/eldbus_mono/eldbus_connection.cs \
|
|
|
|
bindings/mono/eldbus_mono/eldbus_message.cs \
|
|
|
|
bindings/mono/eldbus_mono/eldbus_object.cs \
|
|
|
|
bindings/mono/eldbus_mono/eldbus_pending.cs \
|
|
|
|
bindings/mono/eldbus_mono/eldbus_proxy.cs \
|
|
|
|
bindings/mono/eldbus_mono/eldbus_service.cs
|
|
|
|
|
2018-02-01 10:38:48 -08:00
|
|
|
# Static C# source files don't go into a _SOURCES var as the dll target
|
|
|
|
# is custom built instead of through _LTLIBRARIES/_LIBRARIES
|
2017-12-13 13:59:54 -08:00
|
|
|
lib_efl_mono_libefl_mono_dll_sources = \
|
2017-12-13 06:36:21 -08:00
|
|
|
bindings/mono/efl_mono/efl_all.cs \
|
csharp: add a interface to start apps
Summary:
until to today you had to call init functions and a run function which
were static function in a class called Efl.Ui.Config.
However, calling those init functions there is not really OOP style.
Right now things have changed into a manner where you are defining you
application class with inheriting from the Application /
SimpleApplication abstract.
This enables you to call launch() on your application class, calling
launch there leads to a call to the args function, you can call and use
the Efl classes in there, everything is booted up.
Option parsing and dependency start can still be done in the main method
or application constructor, just ensure that you never call any efl
class / function outside the launch function.
A commit that demonstrates the usage can be found at
ref T7204
https://git.enlightenment.org/tools/examples.git/log/?h=devs/bu5hm4n/POC
Reviewers: felipealmeida, segfaultxavi, Jaehyun_Cho, cedric
Reviewed By: segfaultxavi
Subscribers: zmike, woohyun, akanad, lauromoura, #reviewers, #committers
Tags: #efl_language_bindings
Maniphest Tasks: T7204
Differential Revision: https://phab.enlightenment.org/D7495
2019-01-16 03:28:36 -08:00
|
|
|
bindings/mono/efl_mono/efl_csharp_application.cs \
|
2017-12-13 06:36:21 -08:00
|
|
|
$(efl_eo_mono_files) \
|
|
|
|
$(efl_eina_mono_files) \
|
2019-02-25 14:16:19 -08:00
|
|
|
$(efl_eldbus_mono_files)
|
2017-12-13 06:36:21 -08:00
|
|
|
|
2018-02-01 10:38:48 -08:00
|
|
|
efl_mono_test_files = \
|
csharp: Change to new class API.
Summary:
As discussed in T7204:
- Eo Interfaces/mixins -> C# Interfaces with concrete class
implementations
- Eo Regular/Abstracts -> Proper C# classes
- Added some new generators and helper methods.
- Refactored the class generator, splitting into helper methods
Eo handles now are stored only in the "root" class in any given
inheritance tree (generally, Efl.Object), and accessible to each child.
Methods also are defined in a single place instead of repeatedly
generated in everyfile, reducing the size of the generated .dll from
30MB to around 4.5MB.
Mixins are generated as C# interfaces but any regular class it inherits
from is lost, as we can't have interfaces inheriting from regular
classes. This will be dealt with in a later commit.
Summary of API Changes:
- Merged Inherit/Concrete classes. (These suffixes disappear from
regular classes).
- Interface still have implementations with 'Concrete' suffix for when
they are returned from methods.
- Removed 'I' from interface names.
- Removed interfaces for regular/abstract Eo classes.
- Concrete classes for interfaces/mixins hold the event argument struct.
- Removed '_' from classes, enums, structs, etc, as indicated in C#
naming conventions.
- Namespaces are now Camel.Cased.
- Renamed IWrapper's raw_handle/raw_klass to NativeHandle/NativeClass
Also renamed the test classes as after the namespace change, the
test namespace Test can conflict with the helper Test namespace.
(And use more meaningful names than Test.Testing...)
Also Fixes T7336 by removing a deprecated example and adding
efl_loop_timer_example to build system.
Fixes T7451 by hiding the class_get DllImports and renaming the IWrapper
fields. The native handlers are used in the manual binding.
Still need to work:
- As there are still some events names clashing (e.g. Efl.Ui.Bg with "resize"
from Efl.Gfx.Entity and Efl.Gfx.Image), Events are currently declared on
the interface and implemented "namespaced" in the classes,
requiring the cast to the interface to access the event.
- The Mixin Conundrum. Mixin inheritance will be dealt in a future
commit.
Depends on D7260
Reviewers: segfaultxavi, vitor.sousa, felipealmeida, Jaehyun_Cho
Reviewed By: vitor.sousa
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7451, T7336
Differential Revision: https://phab.enlightenment.org/D7262
2018-11-29 15:04:37 -08:00
|
|
|
tests/efl_mono/dummy_test_object.eo \
|
|
|
|
tests/efl_mono/dummy_test_iface.eo \
|
|
|
|
tests/efl_mono/dummy_another_iface.eo \
|
|
|
|
tests/efl_mono/dummy_child.eo \
|
|
|
|
tests/efl_mono/dummy_numberwrapper.eo \
|
2018-02-01 10:38:48 -08:00
|
|
|
tests/efl_mono/mono_test_driver.sh
|
|
|
|
|
2017-12-13 13:59:54 -08:00
|
|
|
EXTRA_DIST2 += \
|
2018-02-01 10:38:48 -08:00
|
|
|
$(lib_efl_mono_libefl_mono_dll_sources) \
|
|
|
|
$(efl_mono_test_files) \
|
|
|
|
bindings/mono/efl_mono/efl_libs.cs.in \
|
|
|
|
bindings/mono/efl_mono/efl_libs.csv.in
|
2017-12-13 13:59:54 -08:00
|
|
|
|
2017-11-23 17:10:05 -08:00
|
|
|
if HAVE_CSHARP
|
|
|
|
|
|
|
|
bin_PROGRAMS += bin/eolian_mono/eolian_mono
|
|
|
|
|
|
|
|
bin_eolian_mono_eolian_mono_SOURCES = \
|
2018-02-01 10:38:48 -08:00
|
|
|
bin/eolian_mono/eolian_mono.cc \
|
|
|
|
bin/eolian_mono/eolian/mono/documentation.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/type.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/marshall_annotation.hh \
|
2018-05-07 15:22:59 -07:00
|
|
|
bin/eolian_mono/eolian/mono/async_function_definition.hh \
|
2018-02-01 10:38:48 -08:00
|
|
|
bin/eolian_mono/eolian/mono/function_pointer.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/function_definition.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/name_helpers.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/function_declaration.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/helpers.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/function_helpers.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/marshall_type_impl.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/function_registration.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/enum_definition.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/struct_definition.hh \
|
2018-03-19 16:35:36 -07:00
|
|
|
bin/eolian_mono/eolian/mono/part_definition.hh \
|
2018-03-08 15:43:14 -08:00
|
|
|
bin/eolian_mono/eolian/mono/struct_fields.hh \
|
2018-02-01 10:38:48 -08:00
|
|
|
bin/eolian_mono/eolian/mono/parameter.hh \
|
2019-02-28 06:09:38 -08:00
|
|
|
bin/eolian_mono/eolian/mono/variable_definition.hh \
|
2018-02-01 10:38:48 -08:00
|
|
|
bin/eolian_mono/eolian/mono/utils.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/using_decl.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/marshall_type.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/klass.hh \
|
|
|
|
bin/eolian_mono/eolian/mono/type_impl.hh \
|
2018-04-16 17:44:27 -07:00
|
|
|
bin/eolian_mono/eolian/mono/events.hh \
|
2018-02-01 10:38:48 -08:00
|
|
|
bin/eolian_mono/eolian/mono/generation_contexts.hh
|
|
|
|
|
2017-11-23 17:10:05 -08:00
|
|
|
bin_eolian_mono_eolian_mono_CXXFLAGS = -I$(top_builddir)/src/lib/efl \
|
|
|
|
-I$(top_srcdir)/src/lib/eolian_cxx/ \
|
|
|
|
-I$(top_srcdir)/src/bin/eolian_mono/ \
|
|
|
|
@CHECK_CFLAGS@ @EINA_CFLAGS@ @EINA_CXX_CFLAGS@ @EO_CXX_CFLAGS@ @ECORE_CXX_CFLAGS@ @EO_CFLAGS@ \
|
|
|
|
-I$(top_srcdir)/src/bindings/cxx/eina_cxx \
|
|
|
|
@EOLIAN_CXX_CFLAGS@ @EOLIAN_CFLAGS@
|
|
|
|
|
|
|
|
bin_eolian_mono_eolian_mono_LDADD = @CHECK_LIBS@ @USE_EOLIAN_LIBS@
|
|
|
|
|
|
|
|
bin_eolian_mono_eolian_mono_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@
|
|
|
|
|
|
|
|
# Helper for other modules using Eolian_Mono, include only after Makefile_Eolian_Helper.am
|
|
|
|
include Makefile_Eolian_Mono_Helper.am
|
|
|
|
|
|
|
|
### Efl C Sharp Binding
|
|
|
|
|
|
|
|
evas_eolian_blacklisted_files = \
|
|
|
|
lib/evas/canvas/efl_canvas_text.eo.cs \
|
|
|
|
lib/evas/canvas/efl_canvas_scene3d.eo.cs \
|
|
|
|
lib/evas/canvas/evas_canvas3d_camera.eo.cs \
|
|
|
|
lib/evas/canvas/evas_canvas3d_light.eo.cs \
|
|
|
|
lib/evas/canvas/evas_canvas3d_material.eo.cs \
|
|
|
|
lib/evas/canvas/evas_canvas3d_mesh.eo.cs \
|
|
|
|
lib/evas/canvas/evas_canvas3d_node.eo.cs \
|
|
|
|
lib/evas/canvas/evas_canvas3d_object.eo.cs \
|
|
|
|
lib/evas/canvas/evas_canvas3d_primitive.eo.cs \
|
|
|
|
lib/evas/canvas/evas_canvas3d_scene.eo.cs \
|
|
|
|
lib/evas/canvas/evas_canvas3d_texture.eo.cs \
|
2018-04-04 04:38:34 -07:00
|
|
|
lib/evas/canvas/efl_canvas_vg_object.eo.cs \
|
2017-11-23 17:10:05 -08:00
|
|
|
lib/evas/canvas/efl_vg.eo.cs \
|
|
|
|
lib/evas/canvas/efl_vg_container.eo.cs \
|
|
|
|
lib/evas/canvas/efl_vg_gradient.eo.cs \
|
|
|
|
lib/evas/canvas/efl_vg_gradient_radial.eo.cs \
|
|
|
|
lib/evas/canvas/efl_vg_gradient_linear.eo.cs \
|
|
|
|
lib/evas/canvas/efl_vg_root_node.eo.cs \
|
|
|
|
lib/evas/canvas/efl_vg_shape.eo.cs
|
|
|
|
|
|
|
|
efl_eolian_blacklisted_files = \
|
|
|
|
lib/efl/interfaces/efl_io_buffer.eo.cs \
|
|
|
|
lib/efl/interfaces/efl_io_positioner.eo.cs \
|
|
|
|
lib/efl/interfaces/efl_io_queue.eo.cs \
|
2018-04-24 18:46:04 -07:00
|
|
|
lib/efl/interfaces/efl_io_sizer.eo.cs
|
2017-11-23 17:10:05 -08:00
|
|
|
|
|
|
|
ecore_eolian_blacklisted_files = \
|
|
|
|
lib/ecore/efl_io_closer_fd.eo.cs \
|
|
|
|
lib/ecore/efl_io_buffered_stream.eo.cs \
|
|
|
|
lib/ecore/efl_io_positioner_fd.eo.cs \
|
|
|
|
lib/ecore/efl_io_reader_fd.eo.cs \
|
|
|
|
lib/ecore/efl_io_writer_fd.eo.cs \
|
|
|
|
lib/ecore/efl_io_copier_fd.eo.cs \
|
|
|
|
lib/ecore/efl_io_sizer_fd.eo.cs \
|
|
|
|
lib/ecore/efl_io_stdin.eo.cs \
|
|
|
|
lib/ecore/efl_io_stdout.eo.cs \
|
|
|
|
lib/ecore/efl_io_stderr.eo.cs \
|
|
|
|
lib/ecore/efl_io_file.eo.cs \
|
|
|
|
lib/ecore/efl_io_copier.eo.cs
|
|
|
|
|
|
|
|
eo_eolian_blacklisted_files = \
|
|
|
|
lib/eo/efl_object_override.eo.cs
|
|
|
|
|
|
|
|
elementary_eolian_blacklisted_files = \
|
|
|
|
lib/elementary/elm_web.eo.cs \
|
|
|
|
lib/elementary/elm_map.eo.cs \
|
|
|
|
lib/elementary/elm_combobox.eo.cs \
|
|
|
|
lib/elementary/elm_list.eo.cs \
|
|
|
|
lib/elementary/elm_genlist.eo.cs \
|
|
|
|
lib/elementary/elm_view_list.eo.cs \
|
|
|
|
lib/elementary/elm_genlist_item.eo.cs \
|
|
|
|
lib/elementary/elm_gengrid.eo.cs \
|
|
|
|
lib/elementary/elm_glview.eo.cs
|
|
|
|
|
2018-02-01 10:38:48 -08:00
|
|
|
efl_mono_blacklisted_files = \
|
|
|
|
$(evas_eolian_blacklisted_files) \
|
|
|
|
$(efl_eolian_blacklisted_files) \
|
|
|
|
$(ecore_eolian_blacklisted_files) \
|
|
|
|
$(eo_eolian_blacklisted_files) \
|
|
|
|
$(elementary_eolian_blacklisted_files)
|
|
|
|
|
2017-11-23 17:10:05 -08:00
|
|
|
efl_eolian_mono_files = \
|
|
|
|
$(filter-out $(eo_eolian_blacklisted_files),$(eo_eolian_files:%.eo=%.eo.cs)) \
|
|
|
|
$(filter-out $(ecore_eolian_blacklisted_files),$(ecore_eolian_files_public:%.eo=%.eo.cs)) \
|
|
|
|
$(ecore_eolian_type_files:%.eot=%.eot.cs) \
|
|
|
|
$(filter-out $(efl_eolian_blacklisted_files),$(efl_eolian_files:%.eo=%.eo.cs)) \
|
|
|
|
$(filter-out $(edje_eolian_blacklisted_files),$(edje_eolian_files:%.eo=%.eo.cs)) \
|
|
|
|
$(filter-out $(elementary_eolian_blacklisted_files),$(elm_public_eolian_files:%.eo=%.eo.cs)) \
|
|
|
|
$(efl_eolian_type_files:%.eot=%.eot.cs) \
|
|
|
|
$(edje_eolian_type_files:%.eot=%.eot.cs) \
|
|
|
|
$(elm_eolian_type_files:%.eot=%.eot.cs) \
|
|
|
|
$(filter-out $(evas_eolian_blacklisted_files),$(evas_canvas_eolian_pub_files:%.eo=%.eo.cs)) \
|
|
|
|
lib/evas/canvas/efl_canvas_image.eo.cs \
|
|
|
|
$(evas_canvas_eolian_type_files:%.eot=%.eot.cs) \
|
C# bindings: Make efl_loop_timer.eo available to bindings
Summary:
This file contains both legacy and new API code, this makes it a little
difficult to deploy.
In Makefile_Ecore.am files can be marked either as legacy or public.
If it is not in legacy, make distcheck fails because Ecore_Legacy.h includes
efl_loop_timer.eo.h.
If it is not in public, bindings are not generated for it.
It cannot be in both places, or make install fails, refusing to install the
same file twice.
Fortunately, there is an ugly place to put files like this one, and it's
already full of other outcasts, so...
Fixes T7114
Test Plan: make distcheck still works, and C# bindings are generated for efl_loop_timer.eo
Reviewers: zmike, bu5hm4n, devilhorns
Reviewed By: zmike
Subscribers: vitor.sousa, cedric, #committers
Tags: #efl
Maniphest Tasks: T7114
Differential Revision: https://phab.enlightenment.org/D6527
2018-07-06 12:00:51 -07:00
|
|
|
lib/eo/eina_types.eot.cs \
|
|
|
|
lib/ecore/efl_loop_timer.eo.cs
|
2017-11-23 17:10:05 -08:00
|
|
|
|
2017-12-13 13:59:54 -08:00
|
|
|
efl_mono_files_gen =\
|
|
|
|
$(efl_eolian_mono_files) \
|
|
|
|
$(builddir)/bindings/mono/efl_mono/efl_libs.cs
|
|
|
|
|
|
|
|
|
2017-11-23 17:10:05 -08:00
|
|
|
installed_eflmonomainheadersdir = $(includedir)/efl-mono-@VMAJ@/
|
2017-12-13 13:59:54 -08:00
|
|
|
nodist_installed_eflmonomainheaders_DATA = $(efl_eolian_files:%.eo=%.eo.cs) $(builddir)/bindings/mono/efl_mono/efl_libs.csv
|
2017-11-23 17:10:05 -08:00
|
|
|
|
2018-02-01 10:38:48 -08:00
|
|
|
CLEANFILES += $(efl_mono_files_gen) $(efl_mono_blacklisted_files) \
|
|
|
|
$(builddir)/lib/efl_mono/libefl_mono.dll \
|
|
|
|
$(builddir)/lib/efl_mono/libefl_mono.xml \
|
|
|
|
$(builddir)/lib/efl_mono/libefl_mono.dll.config
|
2017-11-23 17:10:05 -08:00
|
|
|
|
|
|
|
if HAVE_WIN32
|
|
|
|
|
2018-04-03 09:46:45 -07:00
|
|
|
MCSFLAGS ?=
|
|
|
|
MCSFLAGS += -define:WIN32
|
2017-11-23 17:10:05 -08:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Efl Custom Exports Mono auxiliary library
|
|
|
|
|
|
|
|
lib_LTLIBRARIES += \
|
|
|
|
lib/efl_mono/libeflcustomexportsmono.la
|
|
|
|
|
|
|
|
lib_efl_mono_libeflcustomexportsmono_la_SOURCES = \
|
|
|
|
$(efl_custom_exports_mono_files)
|
|
|
|
|
|
|
|
lib_efl_mono_libeflcustomexportsmono_la_CPPFLAGS = \
|
|
|
|
-DEFL_BETA_API_SUPPORT \
|
|
|
|
-I$(top_builddir)/src/lib/efl \
|
|
|
|
@EFL_CUSTOM_EXPORTS_MONO_CFLAGS@
|
|
|
|
lib_efl_mono_libeflcustomexportsmono_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
|
|
|
|
lib_efl_mono_libeflcustomexportsmono_la_LIBADD = @EFL_CUSTOM_EXPORTS_MONO_LIBS@
|
|
|
|
lib_efl_mono_libeflcustomexportsmono_la_DEPENDENCIES = @EFL_CUSTOM_EXPORTS_MONO_INTERNAL_LIBS@
|
|
|
|
|
|
|
|
#Efl Mono - C Sharp binding library
|
|
|
|
|
2018-04-03 09:46:45 -07:00
|
|
|
libefl_mono_dll_MCSFLAGS = -doc:lib/efl_mono/libefl_mono.xml
|
2017-12-06 16:03:55 -08:00
|
|
|
|
2018-02-01 10:38:48 -08:00
|
|
|
lib/efl_mono/libefl_mono.dll: $(efl_mono_files_dist) lib/efl_mono/$(am__dirstamp) $(lib_efl_mono_libefl_mono_dll_sources) $(efl_mono_files_gen) lib/efl_mono/libefl_mono.dll.config
|
2017-12-11 06:06:54 -08:00
|
|
|
@rm -f lib/efl_mono/libefl_mono.dll
|
2018-04-03 09:46:45 -07:00
|
|
|
$(AM_V_MCS) $(MCS) $(MCSFLAGS) $(libefl_mono_dll_MCSFLAGS) -out:$@ -t:library $(filter %.cs, $(^))
|
2017-11-23 17:10:05 -08:00
|
|
|
|
2017-12-12 20:51:48 -08:00
|
|
|
lib/efl_mono/libefl_mono.dll.config:
|
|
|
|
echo "<configuration>" > $@
|
|
|
|
echo " <dllmap dll=\"eina\" target=\"$(abs_top_builddir)/src/lib/eina/.libs/libeina.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"ecore\" target=\"$(abs_top_builddir)/src/lib/ecore/.libs/libecore.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"eo\" target=\"$(abs_top_builddir)/src/lib/eo/.libs/libeo.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"evas\" target=\"$(abs_top_builddir)/src/lib/evas/.libs/libevas.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"eldbus\" target=\"$(abs_top_builddir)/src/lib/eldbus/.libs/libeldbus.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"elementary\" target=\"$(abs_top_builddir)/src/lib/elementary/.libs/libelementary.so\"/>" >> $@
|
|
|
|
echo "</configuration>" >> $@
|
|
|
|
|
2017-12-13 13:59:54 -08:00
|
|
|
EFL_INSTALL_EXEC_HOOK += \
|
2018-01-25 08:45:04 -08:00
|
|
|
$(MKDIR_P) @eflmonodlldir@; \
|
|
|
|
cp -f $(builddir)/lib/efl_mono/libefl_mono.dll @eflmonodlldir@/libefl_mono.dll; \
|
|
|
|
cp -f $(builddir)/lib/efl_mono/libefl_mono.xml @eflmonodlldir@/libefl_mono.xml; \
|
2017-12-14 19:17:28 -08:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(datadir)/efl_mono; \
|
|
|
|
cp -f $(builddir)/bindings/mono/efl_mono/efl_libs.csv $(DESTDIR)$(datadir)/efl_mono/efl_libs.csv;
|
2017-12-13 13:59:54 -08:00
|
|
|
|
|
|
|
all-local: lib/efl_mono/libefl_mono.dll
|
|
|
|
|
2018-02-01 10:38:48 -08:00
|
|
|
uninstall-local:
|
|
|
|
rm -rf @eflmonodlldir@/libefl_mono.dll
|
|
|
|
rm -rf @eflmonodlldir@/libefl_mono.xml
|
|
|
|
rm -rf $(DESTDIR)$(datadir)/efl_mono
|
|
|
|
rm -rf src/tests/efl_mono
|
|
|
|
|
2017-12-13 13:59:54 -08:00
|
|
|
|
2017-11-23 17:10:05 -08:00
|
|
|
### MSBuild
|
|
|
|
|
|
|
|
bin_PROGRAMS += bin/efl_mono_msbuild_gen/efl_mono_msbuild_gen
|
|
|
|
|
|
|
|
bin_efl_mono_msbuild_gen_efl_mono_msbuild_gen_SOURCES = \
|
|
|
|
bin/efl_mono_msbuild_gen/main.cc
|
|
|
|
|
|
|
|
bin_efl_mono_msbuild_gen_efl_mono_msbuild_gen_CXXFLAGS = \
|
|
|
|
-I$(top_srcdir)/src/lib/efl \
|
|
|
|
-I$(top_builddir)/src/lib/efl \
|
|
|
|
-I$(top_srcdir)/src/lib/eolian_cxx/ \
|
|
|
|
-I$(top_srcdir)/src/bindings/cxx/eina_cxx \
|
|
|
|
@EINA_CFLAGS@ @EINA_CXX_CFLAGS@ @EO_CXX_CFLAGS@ \
|
|
|
|
@ECORE_CXX_CFLAGS@ @EO_CFLAGS@ @EOLIAN_CXX_CFLAGS@ @EOLIAN_CFLAGS@
|
|
|
|
|
|
|
|
bin_efl_mono_msbuild_gen_efl_mono_msbuild_gen_LDADD = @CHECK_LIBS@ @USE_EOLIAN_LIBS@
|
|
|
|
|
|
|
|
bin_efl_mono_msbuild_gen_efl_mono_msbuild_gen_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@
|
|
|
|
|
|
|
|
# Helper for other modules using Efl_Mono_MSBuild_Gen
|
|
|
|
include Makefile_Efl_Mono_MSBuild_Gen_Helper.am
|
|
|
|
|
|
|
|
# Efl Mono DLL for MSBuild
|
2017-12-13 13:59:54 -08:00
|
|
|
../libefl_mono.csproj: $(efl_mono_files_dist) lib/efl_mono/$(am__dirstamp) $(efl_mono_files_gen) $(_EFL_MONO_MSBUILD_GEN_DEP)
|
2017-11-23 17:10:05 -08:00
|
|
|
@rm -f $@
|
|
|
|
$(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a libefl_mono.dll -t library $(patsubst %.cs,src/%.cs,$(filter %.cs, $(^)))
|
|
|
|
|
|
|
|
CSPROJS_SUBDIRS = \
|
|
|
|
examples/eina \
|
|
|
|
examples/efl_mono
|
|
|
|
|
|
|
|
msbuildcsprojs: ../libefl_mono.csproj
|
|
|
|
@for d in $(CSPROJS_SUBDIRS); do \
|
|
|
|
echo "Making MSBuild C Sharp projects in $$d"; \
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) -C $$d msbuildcsprojs || exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
### Some hard-coded runtime dependencies for tests and examples
|
2019-01-15 23:29:56 -08:00
|
|
|
TEST_PATHS = $(abs_top_builddir)/src/lib/efl_mono:$(abs_top_builddir)/src/lib/efl_mono/.libs:$(abs_top_builddir)/src/lib/eina/.libs:$(abs_top_builddir)/src/lib/ecore/.libs:$(abs_top_builddir)/src/lib/ecore_evas/.libs:$(abs_top_builddir)/src/lib/eo/.libs:$(abs_top_builddir)/src/lib/evas/.libs:$(abs_top_builddir)/src/lib/emile/.libs:$(abs_top_builddir)/src/lib/eet/.libs:$(abs_top_builddir)/src/lib/efl/.libs:$(abs_top_builddir)/src/ecore-file/.libs:$(abs_top_builddir)/src/lib/efl-input/.libs:$(abs_top_builddir)/src/lib/edje/.libs:$(abs_top_builddir)/src/lib/ethumb/.libs:$(abs_top_builddir)/src/lib/ethumb-client/.libs:$(abs_top_builddir)/src/lib/emotion/.libs:$(abs_top_builddir)/src/lib/ecore-imf/.libs:$(abs_top_builddir)/src/lib/ecore-con/.libs:$(abs_top_builddir)/src/lib/eldbus/.libs:$(abs_top_builddir)/src/lib/efreet/.libs:$(abs_top_builddir)/src/lib/efreet-mime/.libs:$(abs_top_builddir)/src/lib/efreet-trash/.libs:$(abs_top_builddir)/src/lib/eio/.libs:$(abs_top_builddir)/src/lib/elocation/.libs:$(abs_top_builddir)/src/lib/elementary/.libs:$(abs_top_builddir)/src/tests/efl_mono/.libs
|
2017-11-23 17:10:05 -08:00
|
|
|
|
|
|
|
WIN_ADD_TEST_PATHS = $(abs_top_builddir)/src/lib/evil/.libs:$(abs_top_builddir)/src/lib/ecore_win32/.libs:$(abs_top_builddir)/src/lib/ector/.libs:$(abs_top_builddir)/src/lib/ecore_con/.libs:$(abs_top_builddir)/src/lib/ecore_imf/.libs:$(abs_top_builddir)/src/lib/ecore_file/.libs:$(abs_top_builddir)/src/lib/ecore_input/.libs:$(abs_top_builddir)/src/ethumb_client/.libs:$(abs_top_builddir)/src/tests/efl_mono/.libs
|
|
|
|
|
|
|
|
|
|
|
|
### Rules for generating the .cs files
|
|
|
|
|
|
|
|
ALL_EO_REFS = -r $(top_builddir)/src/bindings/mono/efl_mono/efl_libs.csv
|
|
|
|
|
|
|
|
lib/eo/%.eo.cs: lib/eo/%.eo $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport eo -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
lib/ecore/%.eo.cs: lib/ecore/%.eo $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport ecore -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
lib/evas/%.eo.cs: lib/evas/%.eo $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport evas -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
lib/efl/%.eo.cs: lib/efl/%.eo $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport efl -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
lib/edje/%.eo.cs: lib/edje/%.eo $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport edje -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
lib/elementary/%.eo.cs: lib/elementary/%.eo $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport elementary -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
lib/ecore/%.eot.cs: lib/ecore/%.eot $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport ecore -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
lib/eo/%.eot.cs: lib/eo/%.eot $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport eo -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
lib/evas/%.eot.cs: lib/evas/%.eot $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport evas -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
lib/efl/%.eot.cs: lib/efl/%.eot $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport efl -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
lib/edje/%.eot.cs: lib/edje/%.eot $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport edje -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
lib/elementary/%.eot.cs: lib/elementary/%.eot $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport elementary -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
|
|
|
|
|
|
|
### Tests
|
|
|
|
|
|
|
|
if EFL_ENABLE_TESTS
|
|
|
|
|
|
|
|
# Intermediate C test native library
|
|
|
|
check_LTLIBRARIES += tests/efl_mono/libefl_mono_native_test.la
|
|
|
|
|
|
|
|
tests_efl_mono_libefl_mono_native_test_la_SOURCES = tests/efl_mono/libefl_mono_native_test.c
|
|
|
|
tests_efl_mono_libefl_mono_native_test_la_CPPFLAGS = \
|
|
|
|
-I$(builddir)/tests/efl_mono \
|
|
|
|
@CHECK_CFLAGS@ @EINA_CFLAGS@ @EO_CFLAGS@ @ECORE_CFLAGS@ @ELDBUS_CFLAGS@
|
|
|
|
tests_efl_mono_libefl_mono_native_test_la_LIBADD = \
|
|
|
|
@CHECK_LIBS@ @USE_EINA_LIBS@ @USE_EO_LIBS@ @USE_ECORE_LIBS@ @USE_ELDBUS_LIBS@
|
|
|
|
tests_efl_mono_libefl_mono_native_test_la_LDFLAGS = -rpath $(abs_top_builddir)/tests/efl_mono @EFL_LTLIBRARY_FLAGS@
|
|
|
|
tests_efl_mono_libefl_mono_native_test_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@ @USE_EO_INTERNAL_LIBS@ @USE_ECORE_INTERNAL_LIBS@ @USE_ELDBUS_INTERNAL_LIBS@
|
|
|
|
tests_efl_mono_libefl_mono_native_test_la_LIBTOOLFLAGS = --tag=disable-static
|
|
|
|
|
csharp: Change to new class API.
Summary:
As discussed in T7204:
- Eo Interfaces/mixins -> C# Interfaces with concrete class
implementations
- Eo Regular/Abstracts -> Proper C# classes
- Added some new generators and helper methods.
- Refactored the class generator, splitting into helper methods
Eo handles now are stored only in the "root" class in any given
inheritance tree (generally, Efl.Object), and accessible to each child.
Methods also are defined in a single place instead of repeatedly
generated in everyfile, reducing the size of the generated .dll from
30MB to around 4.5MB.
Mixins are generated as C# interfaces but any regular class it inherits
from is lost, as we can't have interfaces inheriting from regular
classes. This will be dealt with in a later commit.
Summary of API Changes:
- Merged Inherit/Concrete classes. (These suffixes disappear from
regular classes).
- Interface still have implementations with 'Concrete' suffix for when
they are returned from methods.
- Removed 'I' from interface names.
- Removed interfaces for regular/abstract Eo classes.
- Concrete classes for interfaces/mixins hold the event argument struct.
- Removed '_' from classes, enums, structs, etc, as indicated in C#
naming conventions.
- Namespaces are now Camel.Cased.
- Renamed IWrapper's raw_handle/raw_klass to NativeHandle/NativeClass
Also renamed the test classes as after the namespace change, the
test namespace Test can conflict with the helper Test namespace.
(And use more meaningful names than Test.Testing...)
Also Fixes T7336 by removing a deprecated example and adding
efl_loop_timer_example to build system.
Fixes T7451 by hiding the class_get DllImports and renaming the IWrapper
fields. The native handlers are used in the manual binding.
Still need to work:
- As there are still some events names clashing (e.g. Efl.Ui.Bg with "resize"
from Efl.Gfx.Entity and Efl.Gfx.Image), Events are currently declared on
the interface and implemented "namespaced" in the classes,
requiring the cast to the interface to access the event.
- The Mixin Conundrum. Mixin inheritance will be dealt in a future
commit.
Depends on D7260
Reviewers: segfaultxavi, vitor.sousa, felipealmeida, Jaehyun_Cho
Reviewed By: vitor.sousa
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7451, T7336
Differential Revision: https://phab.enlightenment.org/D7262
2018-11-29 15:04:37 -08:00
|
|
|
tests/efl_mono/libefl_mono_native_test.c: \
|
|
|
|
tests/efl_mono/dummy_test_object.eo.h \
|
|
|
|
tests/efl_mono/dummy_test_object.eo.c \
|
|
|
|
tests/efl_mono/dummy_test_iface.eo.h \
|
|
|
|
tests/efl_mono/dummy_test_iface.eo.c \
|
|
|
|
tests/efl_mono/dummy_another_iface.eo.h \
|
|
|
|
tests/efl_mono/dummy_another_iface.eo.c \
|
|
|
|
tests/efl_mono/dummy_child.eo.h \
|
|
|
|
tests/efl_mono/dummy_child.eo.c \
|
|
|
|
tests/efl_mono/dummy_numberwrapper.eo.h \
|
2019-01-25 03:57:07 -08:00
|
|
|
tests/efl_mono/dummy_numberwrapper.eo.c \
|
|
|
|
tests/efl_mono/dummy_inherit_iface.eo.h \
|
|
|
|
tests/efl_mono/dummy_inherit_iface.eo.c \
|
|
|
|
tests/efl_mono/dummy_inherit_helper.eo.h \
|
|
|
|
tests/efl_mono/dummy_inherit_helper.eo.c
|
2017-11-23 17:10:05 -08:00
|
|
|
|
|
|
|
# Intermediate C Sharp test DLL
|
csharp: Change to new class API.
Summary:
As discussed in T7204:
- Eo Interfaces/mixins -> C# Interfaces with concrete class
implementations
- Eo Regular/Abstracts -> Proper C# classes
- Added some new generators and helper methods.
- Refactored the class generator, splitting into helper methods
Eo handles now are stored only in the "root" class in any given
inheritance tree (generally, Efl.Object), and accessible to each child.
Methods also are defined in a single place instead of repeatedly
generated in everyfile, reducing the size of the generated .dll from
30MB to around 4.5MB.
Mixins are generated as C# interfaces but any regular class it inherits
from is lost, as we can't have interfaces inheriting from regular
classes. This will be dealt with in a later commit.
Summary of API Changes:
- Merged Inherit/Concrete classes. (These suffixes disappear from
regular classes).
- Interface still have implementations with 'Concrete' suffix for when
they are returned from methods.
- Removed 'I' from interface names.
- Removed interfaces for regular/abstract Eo classes.
- Concrete classes for interfaces/mixins hold the event argument struct.
- Removed '_' from classes, enums, structs, etc, as indicated in C#
naming conventions.
- Namespaces are now Camel.Cased.
- Renamed IWrapper's raw_handle/raw_klass to NativeHandle/NativeClass
Also renamed the test classes as after the namespace change, the
test namespace Test can conflict with the helper Test namespace.
(And use more meaningful names than Test.Testing...)
Also Fixes T7336 by removing a deprecated example and adding
efl_loop_timer_example to build system.
Fixes T7451 by hiding the class_get DllImports and renaming the IWrapper
fields. The native handlers are used in the manual binding.
Still need to work:
- As there are still some events names clashing (e.g. Efl.Ui.Bg with "resize"
from Efl.Gfx.Entity and Efl.Gfx.Image), Events are currently declared on
the interface and implemented "namespaced" in the classes,
requiring the cast to the interface to access the event.
- The Mixin Conundrum. Mixin inheritance will be dealt in a future
commit.
Depends on D7260
Reviewers: segfaultxavi, vitor.sousa, felipealmeida, Jaehyun_Cho
Reviewed By: vitor.sousa
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7451, T7336
Differential Revision: https://phab.enlightenment.org/D7262
2018-11-29 15:04:37 -08:00
|
|
|
efl_mono_test_eolian_mono_files = tests/efl_mono/dummy_test_object.eo.cs \
|
|
|
|
tests/efl_mono/dummy_test_iface.eo.cs \
|
|
|
|
tests/efl_mono/dummy_another_iface.eo.cs \
|
|
|
|
tests/efl_mono/dummy_child.eo.cs \
|
2019-01-25 03:57:07 -08:00
|
|
|
tests/efl_mono/dummy_numberwrapper.eo.cs \
|
|
|
|
tests/efl_mono/dummy_inherit_iface.eo.cs \
|
|
|
|
tests/efl_mono/dummy_inherit_helper.eo.cs
|
2017-11-23 17:10:05 -08:00
|
|
|
|
2018-04-03 09:46:45 -07:00
|
|
|
tests/efl_mono/libefl_mono_test.dll: $(efl_mono_test_eolian_mono_files) tests/efl_mono/$(am__dirstamp) lib/efl_mono/libefl_mono.dll tests/efl_mono/libefl_mono_native_test.la tests/efl_mono/libefl_mono_test.dll.config
|
2017-12-11 06:06:54 -08:00
|
|
|
@rm -f tests/efl_mono/libefl_mono_test.dll
|
2018-04-03 09:46:45 -07:00
|
|
|
$(AM_V_MCS) $(MCS) $(MCSFLAGS) -r:$(abs_builddir)/lib/efl_mono/libefl_mono.dll -out:$@ -t:library $(filter %.cs, $(^))
|
2017-11-23 17:10:05 -08:00
|
|
|
|
2017-12-12 20:51:48 -08:00
|
|
|
tests/efl_mono/efl_mono$(EXEEXT).config:
|
|
|
|
echo "<configuration>" > $@
|
|
|
|
echo " <dllmap dll=\"eina\" target=\"$(abs_top_builddir)/src/lib/eina/.libs/libeina.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"ecore\" target=\"$(abs_top_builddir)/src/lib/ecore/.libs/libecore.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"eo\" target=\"$(abs_top_builddir)/src/lib/eo/.libs/libeo.so\"/>" >> $@
|
2018-03-19 15:47:58 -07:00
|
|
|
echo " <dllmap dll=\"efl\" target=\"$(abs_top_builddir)/src/lib/efl/.libs/libefl.so\"/>" >> $@
|
2017-12-12 20:51:48 -08:00
|
|
|
echo " <dllmap dll=\"evas\" target=\"$(abs_top_builddir)/src/lib/evas/.libs/libevas.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"eldbus\" target=\"$(abs_top_builddir)/src/lib/eldbus/.libs/libeldbus.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"elementary\" target=\"$(abs_top_builddir)/src/lib/elementary/.libs/libelementary.so\"/>" >> $@
|
|
|
|
echo "</configuration>" >> $@
|
|
|
|
|
2018-04-03 09:46:45 -07:00
|
|
|
tests/efl_mono/libefl_mono_test.dll.config:
|
|
|
|
echo "<configuration>" > $@
|
|
|
|
echo " <dllmap dll=\"eina\" target=\"$(abs_top_builddir)/src/lib/eina/.libs/libeina.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"ecore\" target=\"$(abs_top_builddir)/src/lib/ecore/.libs/libecore.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"eo\" target=\"$(abs_top_builddir)/src/lib/eo/.libs/libeo.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"efl\" target=\"$(abs_top_builddir)/src/lib/efl/.libs/libefl.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"evas\" target=\"$(abs_top_builddir)/src/lib/evas/.libs/libevas.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"eldbus\" target=\"$(abs_top_builddir)/src/lib/eldbus/.libs/libeldbus.so\"/>" >> $@
|
|
|
|
echo " <dllmap dll=\"elementary\" target=\"$(abs_top_builddir)/src/lib/elementary/.libs/libelementary.so\"/>" >> $@
|
|
|
|
echo "</configuration>" >> $@
|
|
|
|
|
2017-11-23 17:10:05 -08:00
|
|
|
# C Sharp test executable
|
2018-01-18 20:28:40 -08:00
|
|
|
AM_TESTS_ENVIRONMENT += MONO='mono'
|
|
|
|
AM_TESTS_ENVIRONMENT += MONO_BUILDPATH='$(abs_top_builddir)'
|
|
|
|
AM_TESTS_ENVIRONMENT += MONO_PATH='$(TEST_PATHS)'
|
|
|
|
AM_TESTS_ENVIRONMENT += EXEEXT='$(EXEEXT)'
|
2017-11-23 17:10:05 -08:00
|
|
|
if HAVE_WIN32
|
2018-01-18 20:28:40 -08:00
|
|
|
AM_TESTS_ENVIRONMENT += PATH='$(PATH):$(TEST_PATHS):$(WIN_ADD_TEST_PATHS)'
|
2017-11-23 17:10:05 -08:00
|
|
|
else
|
2018-01-18 20:28:40 -08:00
|
|
|
AM_TESTS_ENVIRONMENT += LD_LIBRARY_PATH='$(LD_LIBRARY_PATH):$(TEST_PATHS)'
|
2017-11-23 17:10:05 -08:00
|
|
|
|
2017-12-15 16:09:43 -08:00
|
|
|
check_PROGRAMS += tests/efl_mono/efl_mono
|
2017-11-23 17:10:05 -08:00
|
|
|
TESTS += tests/efl_mono/mono_test_driver.sh
|
|
|
|
|
2017-12-15 16:09:43 -08:00
|
|
|
tests_efl_mono_efl_mono_SOURCES = \
|
2017-11-23 17:10:05 -08:00
|
|
|
tests/efl_mono/Main.cs \
|
2018-03-21 18:39:17 -07:00
|
|
|
tests/efl_mono/TestUtils.cs \
|
2018-03-15 16:32:39 -07:00
|
|
|
tests/efl_mono/BasicDirection.cs \
|
2017-11-23 17:10:05 -08:00
|
|
|
tests/efl_mono/Eina.cs \
|
|
|
|
tests/efl_mono/Eldbus.cs \
|
|
|
|
tests/efl_mono/Eo.cs \
|
2018-05-07 15:22:59 -07:00
|
|
|
tests/efl_mono/EoPromises.cs \
|
2017-11-23 17:10:05 -08:00
|
|
|
tests/efl_mono/Errors.cs \
|
|
|
|
tests/efl_mono/Events.cs \
|
|
|
|
tests/efl_mono/FunctionPointers.cs \
|
2018-03-21 18:39:17 -07:00
|
|
|
tests/efl_mono/FunctionPointerMarshalling.cs \
|
2018-03-19 16:35:36 -07:00
|
|
|
tests/efl_mono/Parts.cs \
|
2018-04-20 14:17:26 -07:00
|
|
|
tests/efl_mono/Promises.cs \
|
2018-01-26 12:01:03 -08:00
|
|
|
tests/efl_mono/Strbuf.cs \
|
2017-11-23 17:10:05 -08:00
|
|
|
tests/efl_mono/Strings.cs \
|
2017-12-12 06:06:46 -08:00
|
|
|
tests/efl_mono/Structs.cs \
|
2017-11-23 17:10:05 -08:00
|
|
|
tests/efl_mono/Value.cs \
|
2019-01-14 07:14:19 -08:00
|
|
|
tests/efl_mono/ValueEolian.cs \
|
|
|
|
tests/efl_mono/EinaTestData.cs \
|
|
|
|
tests/efl_mono/StructHelpers.cs
|
2017-11-23 17:10:05 -08:00
|
|
|
|
2017-12-12 20:51:48 -08:00
|
|
|
tests/efl_mono/efl_mono$(EXEEXT): $(tests_efl_mono_efl_mono_SOURCES) tests/efl_mono/$(am__dirstamp) lib/efl_mono/libefl_mono.dll tests/efl_mono/libefl_mono_test.dll tests/efl_mono/efl_mono$(EXEEXT).config
|
2017-12-15 16:09:43 -08:00
|
|
|
@rm -f $@
|
2018-04-03 09:46:45 -07:00
|
|
|
$(AM_V_MCS) $(MCS) $(MCSFLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -r:$(abs_top_builddir)/src/tests/efl_mono/libefl_mono_test.dll -out:$@ $(filter %.cs, $(^))
|
2017-11-23 17:10:05 -08:00
|
|
|
|
|
|
|
# Rule for generating the .cs files
|
|
|
|
tests/efl_mono/%.eo.cs: tests/efl_mono/%.eo $(_EOLIAN_MONO_DEP)
|
|
|
|
$(AM_V_EOLMONO) \
|
|
|
|
$(MKDIR_P) $(dir $@); \
|
|
|
|
$(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport "@DLIB_PREFIX_MONO@efl_mono_native_test@DLIB_SUFFIX_MONO@" -o $@ $(ALL_EO_REFS) $<
|
|
|
|
|
csharp: Change to new class API.
Summary:
As discussed in T7204:
- Eo Interfaces/mixins -> C# Interfaces with concrete class
implementations
- Eo Regular/Abstracts -> Proper C# classes
- Added some new generators and helper methods.
- Refactored the class generator, splitting into helper methods
Eo handles now are stored only in the "root" class in any given
inheritance tree (generally, Efl.Object), and accessible to each child.
Methods also are defined in a single place instead of repeatedly
generated in everyfile, reducing the size of the generated .dll from
30MB to around 4.5MB.
Mixins are generated as C# interfaces but any regular class it inherits
from is lost, as we can't have interfaces inheriting from regular
classes. This will be dealt with in a later commit.
Summary of API Changes:
- Merged Inherit/Concrete classes. (These suffixes disappear from
regular classes).
- Interface still have implementations with 'Concrete' suffix for when
they are returned from methods.
- Removed 'I' from interface names.
- Removed interfaces for regular/abstract Eo classes.
- Concrete classes for interfaces/mixins hold the event argument struct.
- Removed '_' from classes, enums, structs, etc, as indicated in C#
naming conventions.
- Namespaces are now Camel.Cased.
- Renamed IWrapper's raw_handle/raw_klass to NativeHandle/NativeClass
Also renamed the test classes as after the namespace change, the
test namespace Test can conflict with the helper Test namespace.
(And use more meaningful names than Test.Testing...)
Also Fixes T7336 by removing a deprecated example and adding
efl_loop_timer_example to build system.
Fixes T7451 by hiding the class_get DllImports and renaming the IWrapper
fields. The native handlers are used in the manual binding.
Still need to work:
- As there are still some events names clashing (e.g. Efl.Ui.Bg with "resize"
from Efl.Gfx.Entity and Efl.Gfx.Image), Events are currently declared on
the interface and implemented "namespaced" in the classes,
requiring the cast to the interface to access the event.
- The Mixin Conundrum. Mixin inheritance will be dealt in a future
commit.
Depends on D7260
Reviewers: segfaultxavi, vitor.sousa, felipealmeida, Jaehyun_Cho
Reviewed By: vitor.sousa
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7451, T7336
Differential Revision: https://phab.enlightenment.org/D7262
2018-11-29 15:04:37 -08:00
|
|
|
CLEANFILES += tests/efl_mono/libefl_mono_test.dll tests/efl_mono/dummy_test_object.eo.cs tests/efl_mono/dummy_child.eo.cs tests/efl_mono/dummy_numberwrapper.eo.cs tests/efl_mono/dummy_test_object.eo.c tests/efl_mono/dummy_child.eo.c tests/efl_mono/dummy_numberwrapper.eo.c tests/efl_mono/dummy_test_object.eo.h tests/efl_mono/dummy_child.eo.h tests/efl_mono/dummy_numberwrapper.eo.h tests/efl_mono/efl_mono.config
|
2017-12-12 20:51:48 -08:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2017-11-23 17:10:05 -08:00
|
|
|
endif
|
|
|
|
endif
|