summaryrefslogtreecommitdiff
path: root/src/bin/main.c
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2013-11-11 10:00:44 +0200
committerYakov Goldberg <yakov.g@samsung.com>2013-11-11 15:20:24 +0200
commit950fcf7e68e9d2ea612a017b6336b65e049ddf3b (patch)
tree68c89aff320eeae1de3ff1c20b9202f734eb6077 /src/bin/main.c
parent943c509dbe4545d991a2bb1684829261c1336507 (diff)
make separate binaries: egui_cmd and egui
- src/bin - source files which are needed to build egui but in CMakeLists for this dir target will be build with -DCMD_MODE define. Binary: "egui_cmd" will be build. - src/bin/egui_gui - CMakeLists which takes sources from /src/bin and builds without CMD_MODE definition. Binary "egui" will be build and copied into /build/src/bin. Need to move all gui files ino src/bin/egui_gui and generate gui_layout.
Diffstat (limited to 'src/bin/main.c')
-rw-r--r--src/bin/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 887ffdc..bf7cb85 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -63,7 +63,12 @@ end:
63static void 63static void
64_help() 64_help()
65{ 65{
66 printf("Usage: gui_builder [-f FILENAME | -s | -g -o NAME [-p PATH] ]\n" 66 printf(
67#ifdef CMD_MODE
68 "Usage: egui_cmd -f FILENAME -s | -g -o NAME [-p PATH]\n"
69#else
70 "Usage: egui [-f FILENAME | -s | -g -o NAME [-p PATH] ]\n"
71#endif
67 "Options:\n" 72 "Options:\n"
68 " -f FILENAME\n" 73 " -f FILENAME\n"
69 " -s - simulate\n" 74 " -s - simulate\n"
@@ -129,9 +134,13 @@ main(int argc, char **argv)
129 134
130 if (mode == NULL) 135 if (mode == NULL)
131 { 136 {
137#ifdef CMD_MODE
138 _help();
139#else
132 egui_start(filename); 140 egui_start(filename);
133 elm_run(); 141 elm_run();
134 //egui_stop(); 142 //egui_stop();
143#endif
135 } 144 }
136 else if (!strcmp(mode, "-s")) 145 else if (!strcmp(mode, "-s"))
137 { 146 {