cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=21ee8b83370f0878591106e5625fa2c0a18b4226

commit 21ee8b83370f0878591106e5625fa2c0a18b4226
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Apr 11 11:26:06 2016 -0700

    elementary: we actually need to include this generated files or make dist 
will fail.
---
 src/examples/elementary/.gitignore                 |   2 -
 src/examples/elementary/Makefile.am                |   4 +-
 src/examples/elementary/codegen_example.edj        | Bin 0 -> 12063 bytes
 .../elementary/codegen_example_generated.c         | 132 +++++++++++++++++++++
 .../elementary/codegen_example_generated.h         |  65 ++++++++++
 5 files changed, 199 insertions(+), 4 deletions(-)

diff --git a/src/examples/elementary/.gitignore 
b/src/examples/elementary/.gitignore
index b2a9ac5..9d210a9 100644
--- a/src/examples/elementary/.gitignore
+++ b/src/examples/elementary/.gitignore
@@ -98,8 +98,6 @@
 /win_example
 /dayselector_example
 /codegen_example
-/codegen_example_generated.c
-/codegen_example_generated.h
 /glview_example_01
 /location_example_01
 /prefs_example_01
diff --git a/src/examples/elementary/Makefile.am 
b/src/examples/elementary/Makefile.am
index 3ed6b93..482893d 100644
--- a/src/examples/elementary/Makefile.am
+++ b/src/examples/elementary/Makefile.am
@@ -229,7 +229,6 @@ files_DATA += \
 
 clean-local:
        rm -f *.edj *.epb *.cfg *.cfg.bkp
-       rm -f codegen_example_generated.c codegen_example_generated.h
 
 ELEMENTARY_CODEGEN_FLAGS = --prefix=codegen_example
 
@@ -576,7 +575,8 @@ screenshots: examples
                convert $(HTML_SS_DIR)/$${SS_FILE} 
$(LATEX_SS_DIR)/$${SS_FILE/.png/.eps} ; \
        done
 
-EXTRA_DIST = dict.txt layout_example.edc theme_example.edc codegen_example.edc 
evas3d_map_example.edc twitter_example_01.edc performance/layout.edc 
performance/background.png performance/target_texture.png 
sphere_hunter/sphere_hunter.edc sphere_hunter/score.jpg 
sphere_hunter/EFL_victory.png sphere_hunter/EFL_defeat.png
+EXTRA_DIST = dict.txt layout_example.edc theme_example.edc codegen_example.edc 
evas3d_map_example.edc twitter_example_01.edc performance/layout.edc 
performance/background.png performance/target_texture.png 
sphere_hunter/sphere_hunter.edc sphere_hunter/score.jpg 
sphere_hunter/EFL_victory.png sphere_hunter/EFL_defeat.png 
codegen_example_generated.c codegen_example_generated.h codegen_example.edj
+
 
 examples: $(examples_PROGRAMS)
 
diff --git a/src/examples/elementary/codegen_example.edj 
b/src/examples/elementary/codegen_example.edj
new file mode 100644
index 0000000..4f87ec8
Binary files /dev/null and b/src/examples/elementary/codegen_example.edj differ
diff --git a/src/examples/elementary/codegen_example_generated.c 
b/src/examples/elementary/codegen_example_generated.c
new file mode 100644
index 0000000..8ce305e
--- /dev/null
+++ b/src/examples/elementary/codegen_example_generated.c
@@ -0,0 +1,132 @@
+#include "codegen_example_generated.h"
+
+Evas_Object *
+codegen_example_layout_add(Evas_Object *o, Elm_Theme *th, const char 
*edje_file)
+{
+   Evas_Object *l;
+
+   if (edje_file)
+     elm_theme_extension_add(th, edje_file);
+   else
+     elm_theme_extension_add(th, "./codegen_example.edj");
+
+   l = elm_layout_add(o);
+   if (!l) return NULL;
+
+   if (!elm_layout_theme_set(l, "example", "mylayout", "default"))
+     {
+        evas_object_del(l);
+        return NULL;
+     }
+
+   return l;
+}
+
+void
+codegen_example_title_set(Evas_Object *o, const char *value)
+{
+   elm_layout_text_set(o, "example/title", value);
+}
+
+const char *
+codegen_example_title_get(const Evas_Object *o)
+{
+   return elm_layout_text_get(o, "example/title");
+}
+
+void
+codegen_example_custom_set(Evas_Object *o, Evas_Object *value)
+{
+   elm_layout_content_set(o, "example/custom", value);
+}
+
+Evas_Object *
+codegen_example_custom_unset(Evas_Object *o)
+{
+   return elm_layout_content_unset(o, "example/custom");
+}
+
+Evas_Object *
+codegen_example_custom_get(const Evas_Object *o)
+{
+   return elm_layout_content_get(o, "example/custom");
+}
+
+Eina_Bool
+codegen_example_box_append(Evas_Object *o, Evas_Object *child)
+{
+   return elm_layout_box_append(o, "example/box", child);
+}
+
+Eina_Bool
+codegen_example_box_prepend(Evas_Object *o, Evas_Object *child)
+{
+   return elm_layout_box_prepend(o, "example/box", child);
+}
+
+Eina_Bool
+codegen_example_box_insert_before(Evas_Object *o, Evas_Object *child, const 
Evas_Object *reference)
+{
+   return elm_layout_box_insert_before(o, "example/box", child, reference);
+}
+
+Eina_Bool
+codegen_example_box_insert_at(Evas_Object *o, Evas_Object *child, unsigned int 
pos)
+{
+   return elm_layout_box_insert_at(o, "example/box", child, pos);
+}
+
+Evas_Object *
+codegen_example_box_remove(Evas_Object *o, Evas_Object *child)
+{
+   return elm_layout_box_remove(o, "example/box", child);
+}
+
+Eina_Bool
+codegen_example_box_remove_all(Evas_Object *o, Eina_Bool clear)
+{
+   return elm_layout_box_remove_all(o, "example/box", clear);
+}
+
+Eina_Bool
+codegen_example_table_pack(Evas_Object *o, Evas_Object *child, unsigned short 
col, unsigned short row, unsigned short colspan, unsigned short rowspan)
+{
+   return elm_layout_table_pack(o, "example/table", child, col, row, colspan, 
rowspan);
+}
+
+Evas_Object *
+codegen_example_table_unpack(Evas_Object *o, Evas_Object *child)
+{
+   return elm_layout_table_unpack(o, "example/table", child);
+}
+
+Eina_Bool
+codegen_example_table_clear(Evas_Object *o, Eina_Bool clear)
+{
+   return elm_layout_table_clear(o, "example/table", clear);
+}
+
+void
+codegen_example_swallow_grow_emit(Evas_Object *o)
+{
+   elm_layout_signal_emit(o, "button,enlarge", "");
+}
+
+void
+codegen_example_swallow_shrink_emit(Evas_Object *o)
+{
+   elm_layout_signal_emit(o, "button,reduce", "");
+}
+
+void
+codegen_example_size_changed_callback_add(Evas_Object *o, Edje_Signal_Cb func, 
void *data)
+{
+   elm_layout_signal_callback_add(o, "size,changed", "", func, data);
+}
+
+void
+codegen_example_size_changed_callback_del(Evas_Object *o, Edje_Signal_Cb func)
+{
+   elm_layout_signal_callback_del(o, "size,changed", "", func);
+}
+
diff --git a/src/examples/elementary/codegen_example_generated.h 
b/src/examples/elementary/codegen_example_generated.h
new file mode 100644
index 0000000..b8fbc4e
--- /dev/null
+++ b/src/examples/elementary/codegen_example_generated.h
@@ -0,0 +1,65 @@
+#ifndef _CODEGEN_EXAMPLE_GENERATED_H
+#define _CODEGEN_EXAMPLE_GENERATED_H
+
+#include <Edje.h>
+#include <Elementary.h>
+#include <Evas.h>
+
+#include <stdlib.h>
+
+/**
+ * @brief Creates the layout object and set the theme
+ * @param o The parent
+ * @param th The theme to add to, or if NULL, the default theme
+ * @param edje_file The path to edj, if NULL it's used the path given
+ *                  to elementary_codegen
+ */
+Evas_Object *codegen_example_layout_add(Evas_Object *o, Elm_Theme *th, const 
char *edje_file);
+
+/**
+ * @brief The example title
+ */
+void codegen_example_title_set(Evas_Object *o, const char *value);
+const char *codegen_example_title_get(const Evas_Object *o);
+
+/**
+ * @brief The swallow part
+ */
+void codegen_example_custom_set(Evas_Object *o, Evas_Object *value);
+Evas_Object *codegen_example_custom_unset(Evas_Object *o);
+Evas_Object *codegen_example_custom_get(const Evas_Object *o);
+
+/**
+ * @brief The box part
+ */
+Eina_Bool codegen_example_box_append(Evas_Object *o, Evas_Object *child);
+Eina_Bool codegen_example_box_prepend(Evas_Object *o, Evas_Object *child);
+Eina_Bool codegen_example_box_insert_before(Evas_Object *o, Evas_Object 
*child, const Evas_Object *reference);
+Eina_Bool codegen_example_box_insert_at(Evas_Object *o, Evas_Object *child, 
unsigned int pos);
+Evas_Object *codegen_example_box_remove(Evas_Object *o, Evas_Object *child);
+Eina_Bool codegen_example_box_remove_all(Evas_Object *o, Eina_Bool clear);
+
+/**
+ * @brief The table part
+ */
+Eina_Bool codegen_example_table_pack(Evas_Object *o, Evas_Object *child, 
unsigned short col, unsigned short row, unsigned short colspan, unsigned short 
rowspan);
+Evas_Object *codegen_example_table_unpack(Evas_Object *o, Evas_Object *child);
+Eina_Bool codegen_example_table_clear(Evas_Object *o, Eina_Bool clear);
+
+/**
+ * @brief Executed when the button enlarges
+ */
+void codegen_example_swallow_grow_emit(Evas_Object *o);
+
+/**
+ * @brief Executed when the button reduces
+ */
+void codegen_example_swallow_shrink_emit(Evas_Object *o);
+
+/**
+ * @brief Emit the signal size,changed
+ */
+void codegen_example_size_changed_callback_add(Evas_Object *o, Edje_Signal_Cb 
func, void *data);
+void codegen_example_size_changed_callback_del(Evas_Object *o, Edje_Signal_Cb 
func);
+
+#endif /* _CODEGEN_EXAMPLE_GENERATED_H */

-- 


Reply via email to