コード例 #1
0
ファイル: MainWindow.cs プロジェクト: rLinks234/nUtility
        private void CleanButton_Click(object sender, EventArgs e)
        {
            ICommandCommunicator mockConsole    = new MessageScreenScrollable();
            List<Command> commands              = new List<Command>();

            mockConsole.SetName("(NDK-Build clean) Output");

            try
            {
                MessageScreenScrollable msg = (MessageScreenScrollable)mockConsole;
                msg.Show();
            }
            catch (Exception ex) { }

            ProjectEnvironmentContext ctx = GetProjectContext();
            NdkBuild verbose = new NdkBuild(ref mockConsole, ref ctx, ref SelectedProjectModule);
            verbose.SetCommand(NdkBuild.Defaults.CLEAN);
            commands.Add(new NdkBuild(ref mockConsole, ref ctx, ref SelectedProjectModule));

            BuildCommandDispatch dispatch = new BuildCommandDispatch(ref mockConsole, commands);
            dispatch.Execute();
        }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: rLinks234/nUtility
        private void GenerateCppCodeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //         public DexToJni(ref ICommandCommunicator communicator, ref ProjectEnvironmentContext context, ref ProjectEnvironment.ProjectModule module, List<string> filesAndDirs, string additionalArgs = "", bool printInfo = true)
            // : base(ref communicator, ref context)
            List<string> files = new List<string>();
            
            foreach (TreeNode node in JavaClassFileTreeView.Nodes)
            {
                GetAllClickedFileNodes(node, ref files);
            }

            ICommandCommunicator mockConsole = new MessageScreenScrollable();
            List<Command> commands = new List<Command>();

            mockConsole.SetName("DexToJni Output");

            try
            {
                MessageScreenScrollable msg = (MessageScreenScrollable)mockConsole;
                msg.Show();
            }
            catch (Exception ex) { }

            ProjectEnvironmentContext ctx = GetProjectContext();
            DexToJni build = new DexToJni(ref mockConsole, ref ctx, ref SelectedProjectModule, ref files);
            build.SetArgs(new FileInfo(SelectedSdkEnvironment.DexDumpExecLocation), NUtilityGlobalContext.DexToJniExecLocation, new DirectoryInfo(Path.Combine(SelectedProjectModule.ModuleRootDirectory, "DexToJni Output")));
            commands.Add(build);

            BuildCommandDispatch dispatch = new BuildCommandDispatch(ref mockConsole, commands);
            dispatch.Execute();
        }