Skip to content

Commit

Permalink
add -debug export option to export with debug builds of binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmaclarty committed Sep 18, 2019
1 parent 0fd378a commit 9bd6d33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/am_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ bool am_build_exports(am_export_flags *flags) {
conf.orientation = am_conf_app_display_orientation;
conf.launch_image = am_conf_app_launch_image;
conf.launch_image_id = (unsigned int)time(NULL);
conf.grade = "release";
conf.grade = flags->debug ? "debug" : "release";
conf.pakfile = AM_TMP_DIR AM_PATH_SEP_STR "data.pak";
conf.mac_category = am_conf_mac_category;
conf.recurse = flags->recurse;
Expand Down
2 changes: 2 additions & 0 deletions src/am_export.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ struct am_export_flags {
bool export_ios_xcode_proj;
bool export_android_studio_proj;
bool export_data_pak;
bool debug;
bool recurse;
bool allfiles;;
bool zipdir;
Expand All @@ -26,6 +27,7 @@ struct am_export_flags {
export_ios_xcode_proj = false;
export_android_studio_proj = false;
export_data_pak = false;
debug = false;
recurse = false;
allfiles = false;
zipdir = true;
Expand Down
2 changes: 2 additions & 0 deletions src/am_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ static bool export_cmd(int *argc, char ***argv) {
i++;
arg = (*argv)[i];
flags.outpath = arg;
} else if (strcmp(arg, "-debug") == 0) {
flags.debug = true;
} else {
break;
}
Expand Down

0 comments on commit 9bd6d33

Please sign in to comment.