]> git.tdb.fi Git - builder.git/blobdiff - source/jarsigner.cpp
Refactor transitive dependencies to work on all targets
[builder.git] / source / jarsigner.cpp
diff --git a/source/jarsigner.cpp b/source/jarsigner.cpp
deleted file mode 100644 (file)
index a2a1c73..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#include <msp/core/environ.h>
-#include <msp/fs/utils.h>
-#include "component.h"
-#include "filetarget.h"
-#include "jarsigner.h"
-#include "sourcepackage.h"
-
-using namespace std;
-using namespace Msp;
-
-JarSigner::JarSigner(Builder &b):
-       Tool(b, "JSGN")
-{
-       set_command("jarsigner");
-       set_run_external(_run);
-}
-
-Target *JarSigner::create_target(const vector<Target *> &, const string &)
-{
-       throw logic_error("not implemented");
-}
-
-ExternalTask::Arguments JarSigner::_run(const FileTarget &file, FS::Path &work_dir)
-{
-       const Tool &tool = *file.get_tool();
-
-       ExternalTask::Arguments argv;
-       argv.push_back(tool.get_executable()->get_path().str());
-
-       // TODO Make this generic
-       FS::Path home_dir = Msp::getenv("HOME");
-       argv.push_back("-keystore");
-       argv.push_back((home_dir/".android"/"debug.keystore").str());
-       argv.push_back("-storepass");
-       argv.push_back("android");
-
-       argv.push_back(FS::relative(file.get_path(), work_dir).str());
-       argv.push_back("androiddebugkey");
-
-       return argv;
-}