diff --git a/.gitignore b/.gitignore index dea264a366fa..d89e5b12035f 100644 --- a/.gitignore +++ b/.gitignore @@ -142,6 +142,7 @@ LibreOffice.VC.VC.opendb # QtCreator specific *.pro +*.pro.shared *.pro.user *.pro.user.* diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide index ed1632232c92..10d9b2bcc47a 100755 --- a/bin/gbuild-to-ide +++ b/bin/gbuild-to-ide @@ -1511,33 +1511,33 @@ class QtCreatorIntegrationGenerator(IdeIntegrationGenerator): 1 """ - def generate_pro_user_content(self, lib_folder): + def generate_pro_shared_content(self, lib_folder): build_configs = self.generate_build_configs(lib_folder) deploy_configs = self.generate_deploy_configs(lib_folder) run_configs = self.generate_run_configs(lib_folder) - xml = QtCreatorIntegrationGenerator.pro_user_template % { + xml = QtCreatorIntegrationGenerator.pro_shared_template % { 'build_configs': build_configs, 'deploy_configs': deploy_configs, 'run_configs': run_configs, } return xml - def generate_meta_pro_user_content(self): + def generate_meta_pro_shared_content(self): build_configs = self.generate_meta_build_configs() deploy_configs = self.generate_deploy_configs("") run_configs = self.generate_run_configs("") - xml = QtCreatorIntegrationGenerator.pro_user_template % { + xml = QtCreatorIntegrationGenerator.pro_shared_template % { 'build_configs': build_configs, 'deploy_configs': deploy_configs, 'run_configs': run_configs, } return xml - pro_user_template = """ + pro_shared_template = """ @@ -1645,10 +1645,10 @@ class QtCreatorIntegrationGenerator(IdeIntegrationGenerator): self._log("unable to remove %s\n" % afile) do_remove_file(self.base_folder, "lo.pro") - do_remove_file(self.base_folder, "lo.pro.user") + do_remove_file(self.base_folder, "lo.pro.shared") for location in self.target_by_location: for f in os.listdir(location): - if f.endswith('.pro') or f.endswith('.pro.user'): + if f.endswith('.pro') or f.endswith('.pro.shared'): do_remove_file(location, f) def get_source_extension(self, src_file): @@ -1756,7 +1756,7 @@ class QtCreatorIntegrationGenerator(IdeIntegrationGenerator): self.base_folder = self.gbuildparser.builddir - # we remove existing '.pro' and '.pro.user' files + # we remove existing '.pro' and '.pro.shared' files self.remove_qt_files() # for .pro files, we must explicitly list all files (.c, .h) @@ -1797,15 +1797,15 @@ class QtCreatorIntegrationGenerator(IdeIntegrationGenerator): print(temp, file=sys.stderr) print("\n\n", file=sys.stderr) - # create .pro.user file - qt_pro_user_file = '%s/%s.pro.user' % (lib_loc, lib_name) + # create .pro.shared file + qt_pro_shared_file = '%s/%s.pro.shared' % (lib_loc, lib_name) try: - with open(qt_pro_user_file, mode) as fprouser: - fprouser.write(self.generate_pro_user_content(lib_folder)) - self._log("created %s\n" % qt_pro_user_file) + with open(qt_pro_shared_file, mode) as fproshared: + fproshared.write(self.generate_pro_shared_content(lib_folder)) + self._log("created %s\n" % qt_pro_shared_file) except Exception as e: - print("ERROR : creating pro.user file=" + qt_pro_user_file, file=sys.stderr) + print("ERROR : creating pro.shared file=" + qt_pro_shared_file, file=sys.stderr) print(e, file=sys.stderr) temp = traceback.format_exc() print(temp, file=sys.stderr) @@ -1826,15 +1826,15 @@ class QtCreatorIntegrationGenerator(IdeIntegrationGenerator): print(temp, file=sys.stderr) print("\n\n", file=sys.stderr) - # create meta .pro.user file - qt_meta_pro_user_file = 'lo.pro.user' + # create meta .pro.shared file + qt_meta_pro_shared_file = 'lo.pro.shared' try: - with open(qt_meta_pro_user_file, mode) as fmprouser: - fmprouser.write(self.generate_meta_pro_user_content()) - self._log("created %s\n" % qt_meta_pro_user_file) + with open(qt_meta_pro_shared_file, mode) as fmproshared: + fmproshared.write(self.generate_meta_pro_shared_content()) + self._log("created %s\n" % qt_meta_pro_shared_file) except Exception as e: - print("ERROR : creating lo.pro.user file=" + qt_meta_pro_user_file, file=sys.stderr) + print("ERROR : creating lo.pro.shared file=" + qt_meta_pro_shared_file, file=sys.stderr) print(e, file=sys.stderr) temp = traceback.format_exc() print(temp, file=sys.stderr)