예제 #1
0
        private void CreateWinCEProject(EnvDTE.DTE app, string proName, string proPath, string slnName,
                                        bool exclusive, string qtVersion, uint projType, bool usePrecompiledHeaders)
        {
            FakeFilter[] filters = { Filters.SourceFiles(), Filters.HeaderFiles(),
                                     Filters.FormFiles(),   Filters.ResourceFiles(), Filters.GeneratedFiles() };

            QtVersionManager versionManager = QtVersionManager.The();

            if (qtVersion == null)
            {
                qtVersion = versionManager.GetDefaultWinCEVersion();
            }
            VersionInformation qtVersionInfo = versionManager.GetVersionInfo(qtVersion);
            string             platformName  = null;

            try
            {
                platformName = qtVersionInfo.GetVSPlatformName();
            }
            catch
            {
                // fallback to some standard platform...
                platformName = "Windows Mobile 5.0 Pocket PC SDK (ARMV4I)";
            }

            CreateProject(app, proName, proPath, slnName, exclusive, filters, qtVersion, platformName);
            qtPro.WriteProjectBasicConfigurations(projType, usePrecompiledHeaders, qtVersionInfo);
            qtPro.AddModule(QtModule.Main);
        }
예제 #2
0
        public string GetDefaultWinCEVersion()
        {
            QtVersionManager vm = QtVersionManager.The();

            return(vm.GetDefaultWinCEVersion());
        }