diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2021-02-25 13:35:29 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2021-02-26 08:55:32 +0100 |
commit | 21a8653f6a94ca4c6de8160249e721690a679193 (patch) | |
tree | c858164a4530b11152159e02b9b0fb5fe2ba683c | |
parent | 5e73d9d0fc74a6056574f795f47b86f730a0eab2 (diff) |
qtcreator: Don't explicitly delete old *.pro{,.shared} files
They are overwritten when written with the new content
anyway, since opened with file mode 'w+', i.e. they're
truncated first.
This also simplifies handling the case where srcdir != builddir,
for which support will be added in a subsequent step.
Change-Id: I1dd3386cdf0b97a6299357d6c12ed2d7b6365eae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111550
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rwxr-xr-x | bin/gbuild-to-ide | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide index 7af0b26239ff..cc779a37158a 100755 --- a/bin/gbuild-to-ide +++ b/bin/gbuild-to-ide @@ -1635,22 +1635,6 @@ class QtCreatorIntegrationGenerator(IdeIntegrationGenerator): </qtcreator> """ - def remove_qt_files(self): - - def do_remove_file(loc, afile): - try: - os.remove(os.path.join(loc, afile)) - self._log("removed %s\n" % afile) - except OSError: - self._log("unable to remove %s\n" % afile) - - do_remove_file(self.base_folder, "lo.pro") - 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.shared'): - do_remove_file(location, f) - def get_source_extension(self, src_file): path = os.path.join(self.base_folder, src_file) for ext in (".cxx", ".cpp", ".c", ".mm"): @@ -1757,9 +1741,6 @@ class QtCreatorIntegrationGenerator(IdeIntegrationGenerator): mode = 'w+' self.base_folder = self.gbuildparser.builddir - # we remove existing '.pro' and '.pro.shared' files - self.remove_qt_files() - # for .pro files, we must explicitly list all files (.c, .h) # so we can't reuse directly the same method than for kde integration. self.build_data_libs() |