protected override BuildResult Build(IProgressMonitor monitor, SolutionEntityItem entry, ConfigurationSelector configuration)
        {
            CProject project           = (CProject)entry;
            CProjectConfiguration conf = (CProjectConfiguration)project.GetConfiguration(configuration);

            if (conf.CompileTarget != CompileTarget.Bin)
            {
                project.WriteMDPkgPackage(configuration);
            }

            return(base.Build(monitor, entry, configuration));
        }
        private ProjectPackageCollection ProjectPackages(Project project)
        {
            ProjectPackageCollection packages = new ProjectPackageCollection();

            foreach (CombineEntry c in project.ParentCombine.Entries)
            {
                if (c is CProject)
                {
                    CProject cproj             = (CProject)c;
                    CProjectConfiguration conf = (CProjectConfiguration)cproj.ActiveConfiguration;
                    if (conf.CompileTarget != CBinding.CompileTarget.Bin)
                    {
                        cproj.WriteMDPkgPackage();
                        packages.Add(new ProjectPackage(cproj));
                    }
                }
            }

            return(packages);
        }
Esempio n. 3
0
        public override ICompilerResult Build(IProgressMonitor monitor, CombineEntry entry)
        {
            CProject project = entry as CProject;

            if (project == null)
            {
                return(base.Build(monitor, entry));
            }

            foreach (CProject p in project.DependedOnProjects())
            {
                p.Build(monitor, true);
            }

            if (((CProjectConfiguration)project.ActiveConfiguration).CompileTarget != CompileTarget.Bin)
            {
                project.WriteMDPkgPackage();
            }

            return(base.Build(monitor, entry));
        }
Esempio n. 4
0
        private List <Package> GetPackagesOfProjects(Project project)
        {
            List <Package> packages = new List <Package>();
            Package        package;

            foreach (SolutionFolderItem c in project.ParentFolder.Items)
            {
                if (null != c && c is CProject)
                {
                    CProject cproj             = (CProject)c;
                    CProjectConfiguration conf = (CProjectConfiguration)cproj.GetConfiguration(IdeApp.Workspace.ActiveConfiguration);
                    if (conf.CompileTarget != CompileTarget.Exe)
                    {
                        cproj.WriteMDPkgPackage(conf.Selector);
                        package = new Package(cproj);
                        packages.Add(package);
                    }
                }
            }

            return(packages);
        }