summaryrefslogtreecommitdiffstats
path: root/ecmake/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-04-16 09:44:09 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-04-16 09:44:09 +0200
commitc8e52cf46a6f64dbbccbce2b705ab6bbed8905ae (patch)
treeb1b54ce532d2e61e1f26de8f1b05bad41313f56c /ecmake/lib
parentbe86ef338359ae09a38e8b87694350ef6ac84ff8 (diff)
downloadskeletons-c8e52cf46a6f64dbbccbce2b705ab6bbed8905ae.zip
skeletons-c8e52cf46a6f64dbbccbce2b705ab6bbed8905ae.tar.gz
ecmake -> cmake-e
Diffstat (limited to 'ecmake/lib')
-rw-r--r--ecmake/lib/CMakeLists.txt19
-rw-r--r--ecmake/lib/ecmake.c59
-rw-r--r--ecmake/lib/ecmake.h7
3 files changed, 0 insertions, 85 deletions
diff --git a/ecmake/lib/CMakeLists.txt b/ecmake/lib/CMakeLists.txt
deleted file mode 100644
index 6539c55..0000000
--- a/ecmake/lib/CMakeLists.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-LIST(APPEND ECMAKE_CC_SOURCES
- ecmake.c
- )
-
-include_directories(
- ${ELEMENTARY_INCLUDE_DIRS}
- )
-
-add_library(ecmake SHARED ${ECMAKE_CC_SOURCES})
-target_link_libraries(ecmake
- ${ELEMENTARY_LIBRARIES}
- ${EFL_COVERAGE_LIBS}
- )
-
-set_target_properties(ecmake PROPERTIES
- COMPILE_FLAGS "${EFL_COVERAGE_CFLAGS}")
-set_target_properties(ecmake PROPERTIES
- VERSION ${ECMAKE_VERSION} SOVERSION ${ECMAKE_VERSION_MAJOR})
-set_target_properties(ecmake PROPERTIES OUTPUT_NAME "ecmake")
diff --git a/ecmake/lib/ecmake.c b/ecmake/lib/ecmake.c
deleted file mode 100644
index 715bfac..0000000
--- a/ecmake/lib/ecmake.c
+++ /dev/null
@@ -1,59 +0,0 @@
-
-#include "ecmake.h"
-#include "config.h"
-
-#include <Elementary.h>
-
-static void
-on_done(void *data, Evas_Object *obj, void *event_info)
-{
- // quit the mainloop (elm_run function will return)
- elm_exit();
-}
-
-int
-hello_world()
-{
- Evas_Object *win, *box, *lab, *btn;
-
- // new window - do the usual and give it a name (hello) and title (Hello)
- win = elm_win_util_standard_add("hello", "Hello");
- // when the user clicks "close" on a window there is a request to delete
- evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
-
- // add a box object - default is vertical. a box holds children in a row,
- // either horizontally or vertically. nothing more.
- box = elm_box_add(win);
- // make the box horizontal
- elm_box_horizontal_set(box, EINA_TRUE);
- // add object as a resize object for the window (controls window minimum
- // size as well as gets resized if window is resized)
- elm_win_resize_object_add(win, box);
- evas_object_show(box);
-
- // add a label widget, set the text and put it in the pad frame
- lab = elm_label_add(win);
- // set default text of the label
- elm_object_text_set(lab, "Hello out there world!");
- // pack the label at the end of the box
- elm_box_pack_end(box, lab);
- evas_object_show(lab);
-
- // add an ok button
- btn = elm_button_add(win);
- // set default text of button to "OK"
- elm_object_text_set(btn, "OK");
- // pack the button at the end of the box
- elm_box_pack_end(box, btn);
- evas_object_show(btn);
- // call on_done when button is clicked
- evas_object_smart_callback_add(btn, "clicked", on_done, NULL);
-
- // now we are done, show the window
- evas_object_show(win);
-
- // run the mainloop and process events and callbacks
- elm_run();
- elm_shutdown();
- return 0;
-}
diff --git a/ecmake/lib/ecmake.h b/ecmake/lib/ecmake.h
deleted file mode 100644
index f7f456f..0000000
--- a/ecmake/lib/ecmake.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef ECMAKE_H
-#define ECMAKE_H
-
-int
-hello_world();
-
-#endif