Commits

Anonymous committed edf6d8d

Switched to scons as build system

  • Participants
  • Parent commits 2d5d67d

Comments (0)

Files changed (7)

File .SConstruct.swp

Binary file added.
+*.o
+build_debug/*

File .sconsign.dblite

Binary file added.
+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'})
+#include <Elementary.h>
+#include <string>
+
+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);
+   std::string lb_caption = "Hello World!";
+   elm_object_text_set(lb, lb_caption.c_str());
+   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()
+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'
+])