Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Eo classes workarround for disabiling ector #482

Open
wants to merge 13 commits into
base: devs/jptiz/optional-ector
Choose a base branch
from

Conversation

Coquinho
Copy link
Contributor

This PR define vector-graphics and non vector-grafics eo classes "templates" for:

  • src/lib/efl/interfaces/efl_text_style.eo
  • src/lib/evas/canvas/efl_canvas_group.eo
  • src/lib/evas/canvas/efl_canvas_image_internal.eo
  • src/lib/evas/canvas/efl_canvas_textblock.eo

@Coquinho Coquinho requested a review from JPTIZ November 20, 2020 12:03
src/bindings/cxx/meson.build Outdated Show resolved Hide resolved
src/bindings/cxx/meson.build Outdated Show resolved Hide resolved
src/lib/efl/interfaces/meson.build Outdated Show resolved Hide resolved
src/lib/efl/interfaces/meson.build Outdated Show resolved Hide resolved
src/lib/efl/interfaces/meson.build Show resolved Hide resolved
Comment on lines 2 to 4
['efl_canvas_group.eo', 'efl_canvas_group_vg.eo_template', 'efl_canvas_group_non_vg.eo_template'],
['efl_canvas_image_internal.eo', 'efl_canvas_image_internal_vg.eo_template', 'efl_canvas_image_internal_non_vg.eo_template'],
['efl_canvas_textblock.eo', 'efl_canvas_textblock_vg.eo_template', 'efl_canvas_textblock_non_vg.eo_template'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too much, but...

Suggested change
['efl_canvas_group.eo', 'efl_canvas_group_vg.eo_template', 'efl_canvas_group_non_vg.eo_template'],
['efl_canvas_image_internal.eo', 'efl_canvas_image_internal_vg.eo_template', 'efl_canvas_image_internal_non_vg.eo_template'],
['efl_canvas_textblock.eo', 'efl_canvas_textblock_vg.eo_template', 'efl_canvas_textblock_non_vg.eo_template'],
['efl_canvas_group.eo',
'efl_canvas_group_vg.eo_template',
'efl_canvas_group_non_vg.eo_template'],
['efl_canvas_image_internal.eo',
'efl_canvas_image_internal_vg.eo_template',
'efl_canvas_image_internal_non_vg.eo_template'],
['efl_canvas_textblock.eo',
'efl_canvas_textblock_vg.eo_template',
'efl_canvas_textblock_non_vg.eo_template'],

We could also change it into a dict (for better semantics) or just store the prefix and add _vg and _non_vg + .eo and .eo_template inside the foreach loop.

Copy link
Contributor Author

@Coquinho Coquinho Nov 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reworked this, what do you think about it

src/lib/evas/canvas/meson.build Outdated Show resolved Hide resolved
src/lib/evas/canvas/meson.build Outdated Show resolved Hide resolved
copy: true,
)

priv_eo_file_target += custom_target('eolian_gen_' + eo_file,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this variable initialized?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/lib/eo/meson.build:28:priv_eo_file_target = []

and elementary rewrite it:
src/lib/elementary/meson.build:250:priv_eo_file_target = []

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, do we want to append? How does it work/how is it processed?

Copy link
Contributor Author

@Coquinho Coquinho Nov 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually don't know how/why this works/is processed, here I'm just mimicking this, as it was done before this patch. So, just maintaining the same semantics.

@@ -10,6 +10,7 @@ EFL_START_TEST(eolian_static_check)
{
Eolian_State *eos = eolian_state_new();
fail_if(!eolian_state_directory_add(eos, EO_SRC_DIR));
fail_if(!eolian_state_directory_add(eos, EO_BUILD_DIR));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this? (And what does this test-case tests exactly?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kinda loads all the .eos at that directory, the next line compiles them all. As now there are some eos classes at the build dir, we need to include them as well to address all dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants