summaryrefslogtreecommitdiff
path: root/src/bin/main.c
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-07-21 17:58:52 +0300
committerYakov Goldberg <yakov.g@samsung.com>2014-07-21 18:43:13 +0300
commit651c06ccea230a03a7e3ad7c414bfcefddb787f2 (patch)
tree215bb56c350a63d9b4944dbcab55d37ead8a6fe5 /src/bin/main.c
parentea66fccc4f1fc3442613e533a2dc8ef3fc988170 (diff)
Gui Builder: using export_filename/path when generating source code
Diffstat (limited to 'src/bin/main.c')
-rw-r--r--src/bin/main.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 22872c1..534bd8d 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -43,8 +43,16 @@ _generate(const char *in_file, const char *out_path, Generator_Export_Format for
43 path = out_dir; 43 path = out_dir;
44 } 44 }
45 /* if new_project_name is no NULL, we want to put new project name. */ 45 /* if new_project_name is no NULL, we want to put new project name. */
46 gui_context_project_path_set(ctx, path); 46 if (mode == GENERATE_JSON)
47 gui_context_project_filename_set(ctx, out_file); 47 {
48 gui_context_project_path_set(ctx, path);
49 gui_context_project_filename_set(ctx, out_file);
50 }
51 else
52 {
53 gui_context_export_path_set(ctx, path);
54 gui_context_export_filename_set(ctx, out_file);
55 }
48 generator_ctx_source_generate(ctx, format, mode); 56 generator_ctx_source_generate(ctx, format, mode);
49 gui_context_del(ctx); 57 gui_context_del(ctx);
50 free(out_dir); 58 free(out_dir);