X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fapkbuilder.cpp;h=d232a6f927ee23827db9eaafacf7a5997e3f999d;hb=d1f9551e05c9d341149eb490e05b1465d3d6b711;hp=2568f33e081bce17a8852300ca09bf75da758e4f;hpb=7c2db9e2b91da953701be233336c5bfa1f3c4af0;p=builder.git diff --git a/source/apkbuilder.cpp b/source/apkbuilder.cpp index 2568f33..d232a6f 100644 --- a/source/apkbuilder.cpp +++ b/source/apkbuilder.cpp @@ -15,16 +15,16 @@ using namespace Msp; // TODO Separate jar into its own tool and have this one just chain the two ApkBuilder::ApkBuilder(Builder &b): - Tool(b, "APK"), - jarsigner(0) + Tool(b, "APK") { set_command("jar"); } -Target *ApkBuilder::create_target(const list &sources, const string &) +Target *ApkBuilder::create_target(const vector &sources, const string &) { AndroidResourceBundle *resource_bundle = 0; - list other_files; + vector other_files; + other_files.reserve(sources.size()); for(Target *s: sources) { if(AndroidResourceBundle *r = dynamic_cast(s)) @@ -52,7 +52,8 @@ Task *ApkBuilder::run(const Target &tgt) const argv.push_back("u"); FS::Path input_path; - list files; + vector files; + files.reserve(apk.get_dependencies().size()); for(Target *d: apk.get_dependencies()) { FileTarget *file = dynamic_cast(d);