33#include <boost/filesystem.hpp>
58 MMechostr(MSKDEBUG,
"Loading Android Deployer DLL ...\n");
61 char buffer[MAX_PATH];
62 GetModuleFileName(NULL, buffer, MAX_PATH);
63 boost::filesystem::path tools_directory = buffer;
64 tools_directory = tools_directory.remove_filename();
65 tools_directory /=
"\\androidDeployerTools\\";
66 if (boost::filesystem::exists(tools_directory))
67 MMechostr(MSKDEBUG,
"tools directory found at %s", tools_directory.generic_string().c_str());
71 MMechostr(MSKDEBUG,
"error : no tools directory found at %s ...", tools_directory.generic_string().c_str());
77 MMechostr(MSKDEBUG,
"Android Deployer DLL loaded\n");
89 MMechostr(MSKDEBUG,
"Android Deployer DLL CLOSED...\n\n" );
102 MMechostr(MSKDEBUG,
"Loading Android Deployer DLL ...\n");
105 char buffer[MAX_PATH];
106 GetModuleFileName(NULL, buffer, MAX_PATH);
107 boost::filesystem::path tools_directory = buffer;
108 tools_directory = tools_directory.remove_filename();
109 tools_directory /=
"\\androidDeployerTools\\";
110 if (boost::filesystem::exists(tools_directory))
111 MMechostr(MSKDEBUG,
"tools directory found at %s", tools_directory.generic_string().c_str());
115 MMechostr(MSKDEBUG,
"error : no tools directory found at %s ...", tools_directory.generic_string().c_str());
121 MMechostr(MSKDEBUG,
"Android Deployer DLL loaded\n");
133 MMechostr(MSKDEBUG,
"Android Deployer DLL CLOSED...\n\n" );
int LoadAndroidDeployer(mmachine m)
Load the packages in Scol virtual machine.
SCOL_EXPORT int ScolAndroidDeployerUnloadPlugin()
SCOL_EXPORT int ScolAndroidDeployerLoadPlugin(mmachine m, cbmachine w)
SCOL_EXPORT int ScolLoadPlugin(mmachine m, cbmachine w)
Starting point of the DLL Function to add in Scol usm.ini for loading dll.
ToolsPathBox toolsPathBox
cbmachine ww
Scol machine declaration for MM macros.
SCOL_EXPORT int ScolUnloadPlugin()
Ending point of the DLL Function to add in Scol usm.ini for free dll.