Commits

Anonymous committed 5c16e74

code polishing

Comments (0)

Files changed (4)

.sconsign.dblite

Binary file modified.

Makefile

-HEADERS=-I/usr/include/p11-kit-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/lua5.1 -I/usr/include/emotion-1 -I/usr/include/eio-1 -I/usr/include/eeze-1 -I/usr/include/fribidi -I/usr/include/embryo-1
-LIBS=-pthread -lelementary -lm -leet -levas -lecore -leina -lecore_evas -lecore_file -ledje -lefreet -lefreet_mime -lefreet_trash -ledbus -ldbus-1 -lpthread -lrt -lethumb_client -lecore_imf -lecore_con
-
-all:
-	gcc hello.c -o hello $(HEADERS) $(LIBS)
-env = Environment()
-env.Program(target='hello', source=['hello.cpp'])
-env.ParseConfig('pkg-config elementary --cflags --libs')
-
-env.Append(CPPATH = [
-    '/usr/local/include/',
-    '/usr/include/elementary-1',
-    '/usr/include/eina-1',
-    '/usr/include/eina-1/eina',
-    '/usr/include/eet-1',
-    '/usr/include/evas-1',
-    '/usr/include/ecore-1',
-    '/usr/include/edje-1',
-    '/usr/include/e_dbus-1',
-    '/usr/include/dbus-1.0',
-    '/usr/lib/x86_64-linux-gnu/dbus-1.0/include',
-    '/usr/include/efreet-1',
-    '/usr/include/ethumb-1'
-])
-env.Append(CPPPATH = [
-    '/usr/local/include/',
-    '/usr/include/elementary-1',
-    '/usr/include/eina-1',
-    '/usr/include/eina-1/eina',
-    '/usr/include/eet-1',
-    '/usr/include/evas-1',
-    '/usr/include/ecore-1',
-    '/usr/include/edje-1',
-    '/usr/include/e_dbus-1',
-    '/usr/include/dbus-1.0',
-    '/usr/lib/x86_64-linux-gnu/dbus-1.0/include',
-    '/usr/include/efreet-1',
-    '/usr/include/ethumb-1'
-])
+SConscript('main.scons', variant_dir='build_debug', duplicate=0, exports={'MODE':'debug'})

hello.c

-#include <Elementary.h>
-
-static void
-win_del(void *data, Evas_Object *obj, void *event_info)
-{
-   elm_exit();
-}
-
-EAPI int
-elm_main(int argc, char **argv)
-{
-   Evas_Object *win, *bg, *lb;
-
-   win = elm_win_add(NULL, "hello", ELM_WIN_BASIC);
-   elm_win_title_set(win, "Hello");
-   evas_object_smart_callback_add(win, "delete,request", win_del, NULL);
-
-   bg = elm_bg_add(win);
-   evas_object_size_hint_weight_set(bg, 1.0, 1.0);
-   elm_win_resize_object_add(win, bg);
-   evas_object_show(bg);
-
-   lb = elm_label_add(win);
-   elm_object_text_set(lb, "Hello World!");
-   evas_object_size_hint_weight_set(lb, 1.0, 1.0);
-   elm_win_resize_object_add(win, lb);
-   evas_object_show(lb);
-
-   evas_object_show(win);
-
-   elm_run();
-   elm_shutdown();
-   return 0;
-}
-ELM_MAIN()