From: Mikko Rasa Date: Thu, 19 Nov 2015 09:01:24 +0000 (+0200) Subject: Set the debuggable flag in Android manifest if debug is set in build info X-Git-Url: http://git.tdb.fi/?p=builder.git;a=commitdiff_plain;h=3e23be616412a2b9b9a3348dad618fb399f96f67 Set the debuggable flag in Android manifest if debug is set in build info --- diff --git a/source/androidmanifestgenerator.cpp b/source/androidmanifestgenerator.cpp index 719bf95..156dfb3 100644 --- a/source/androidmanifestgenerator.cpp +++ b/source/androidmanifestgenerator.cpp @@ -35,12 +35,16 @@ void AndroidManifestGenerator::Worker::main() const Component &comp = *manifest.get_component(); const SourcePackage &pkg = comp.get_package(); + BuildInfo binfo; + manifest.collect_build_info(binfo); + IO::BufferedFile out(manifest.get_path().str(), IO::M_WRITE); out.write("\n"); IO::print(out, "\n", comp.get_name()); out.write("\t\n"); // TODO Make the icon name configurable - IO::print(out, "\t\n", pkg.get_label()); + bool debuggable = binfo.debug; + IO::print(out, "\t\n", pkg.get_label(), debuggable); if(SharedLibrary *native_lib = manifest.get_native_library()) { out.write("\t\t\n");