AndroidDeployer Scol plugin
androidDeployer.h
Go to the documentation of this file.
1#ifndef __ANDROID_DEPLOYER_H__
2#define __ANDROID_DEPLOYER_H__
3
4#include <scolplugin.h>
5#include <boost/filesystem.hpp>
6
8{
9public:
10 ToolsPathBox(boost::filesystem::path tools_path = "")
11 {
12 toolsPath = tools_path;
13 exe_aaptPath = tools_path / "aapt.exe";
14 exe_aapt2Path = tools_path / "aapt2.exe";
15 jar_bundletoolPath = tools_path / "bundletool-all.jar";
16 jar_pepkPath = tools_path / "lib" / "pepk.jar";
17 exe_adbPath = tools_path / "adb.exe";
18 exe_zipalignPath = tools_path / "zipalign.exe";
19 exe_keytoolPath = tools_path / "bin" / "keytool.exe";
20 exe_jarsignerPath = tools_path / "bin" / "jarsigner.exe";
21 jar_apksignerPath = tools_path / "bin" / "apksigner.jar";
22 exe_javacPath = tools_path / "bin" / "java.exe";
23 jar_androidPath = tools_path / "platforms" / "android" / "android.jar";
24 }
25
26 boost::filesystem::path toolsPath;
27 // tools_directory -> tools
28 boost::filesystem::path exe_aaptPath;
29 boost::filesystem::path exe_aapt2Path;
30 boost::filesystem::path jar_bundletoolPath;
31 boost::filesystem::path jar_pepkPath;
32 boost::filesystem::path exe_adbPath;
33 boost::filesystem::path exe_zipalignPath;
34 // tools_directory -> tools -> bin
35 boost::filesystem::path exe_keytoolPath;
36 boost::filesystem::path exe_jarsignerPath;
37 boost::filesystem::path jar_apksignerPath;
38 boost::filesystem::path exe_javacPath;
39 // tools_directory -> tools -> platforms
40 boost::filesystem::path jar_androidPath;
41};
42
44{
45public:
46 ProjectPathBox(boost::filesystem::path project_path = "")
47 {
48 basePath = project_path;
49 manifestPath = project_path / "AndroidManifest.xml";
50 resPath = project_path / "res";
51 binPath = project_path / "bin";
52 dexPath = project_path / "dex";
53 packagePath = project_path / "package";
54 assetsPath = packagePath / "assets";
55 libPath = packagePath / "lib";
56 tmpPath = project_path / "tmp";
57 projectArchive = tmpPath / "module_archive.zip";
58 }
59
60 // project_directory
61 boost::filesystem::path basePath;
62 boost::filesystem::path manifestPath;
63 boost::filesystem::path resPath;
64 boost::filesystem::path binPath;
65 boost::filesystem::path dexPath;
66 boost::filesystem::path packagePath;
67 boost::filesystem::path assetsPath;
68 boost::filesystem::path libPath;
69 boost::filesystem::path tmpPath;
70 boost::filesystem::path projectArchive;
71};
72
74int LoadAndroidDeployer(mmachine m);
75
76#endif
int LoadAndroidDeployer(mmachine m)
Load the packages in Scol virtual machine.
ToolsPathBox toolsPathBox
boost::filesystem::path binPath
boost::filesystem::path libPath
boost::filesystem::path resPath
boost::filesystem::path basePath
boost::filesystem::path packagePath
ProjectPathBox(boost::filesystem::path project_path="")
boost::filesystem::path projectArchive
boost::filesystem::path dexPath
boost::filesystem::path manifestPath
boost::filesystem::path tmpPath
boost::filesystem::path assetsPath
boost::filesystem::path exe_zipalignPath
boost::filesystem::path jar_androidPath
boost::filesystem::path exe_jarsignerPath
boost::filesystem::path exe_adbPath
boost::filesystem::path exe_aapt2Path
boost::filesystem::path jar_bundletoolPath
boost::filesystem::path jar_pepkPath
boost::filesystem::path exe_javacPath
boost::filesystem::path exe_keytoolPath
boost::filesystem::path exe_aaptPath
boost::filesystem::path jar_apksignerPath
ToolsPathBox(boost::filesystem::path tools_path="")
boost::filesystem::path toolsPath