summaryrefslogtreecommitdiff
path: root/bin/gbuild-to-ide
AgeCommit message (Collapse)Author
2015-12-30tdf#84628 Added per module's macro definitions to eclipsesettingfile.xmlGulsah Kose
Change-Id: Ic9a7b5d95052917ba8c5fb0f696e4ccf91f0bda4 Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/20336 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-12-01gbuild-to-ide split state machinejan iversen
Catching the needed information and the state machine is split. gbuild-to-ide only finds 27 of 93 exe, due to the state machine sequence: CXXOBJECTS for exe1 CXXOBJECTS for exe2 Recipe to execute for exe2 Recipe to execute for exe1 only identifies exe2 and leaves exe1 without a project. Solution is to have an array of state one for all pending exe. This patch only contains the split Change-Id: I2539f10a9850d956a85b6993b26561b1970575df Reviewed-on: https://gerrit.libreoffice.org/20254 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-11-29gbuild-to-ide: Add defines to Qt Creator projectsMaxim Monastirsky
The defines we use to build are needed to correctly parse the code, and find some types like OUString. Change-Id: I3b3aaa51c4637beed113738503c8ab1a967c9149
2015-11-27tdf#84628 Generated eclipse setting file for per module.Gulsah Kose
This patch generated a setting file for per module. When imported the eclipsesettingfile.xml, underlined include lines are clearing up. Setting file includes included file paths for per module and provides correct build. .project file generator deleted because eclipse is creating .project file and overriding it. This adds a new property to the parser that stores each module. Change-Id: Ia10bb37c7c3fdb444a5b79ddf502b962e8ee5736 Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
2015-09-20Avoid creating duplicates in the Visual Studio IDE integrationPeter Foley
When running make vs2013-ide-integration on windows, the manifest targets cause duplicate library/executable entries to be output in the Visual Studio solution files, causing errors. Change-Id: I6b0ce38a3ba84f7f54741e4974264e2c4c7b201a Reviewed-on: https://gerrit.libreoffice.org/18719 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2015-09-20minor pep8 formatting improvments to gbuild-to-idePeter Foley
Change-Id: Ifa060f4ab6ebe7b525a991cc54564e9584d032f7 Reviewed-on: https://gerrit.libreoffice.org/18720 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2015-09-14make it clear that the script completed correctlyMarkus Mohrhard
Change-Id: Ia1ec09db50800b3ba981d7efee5a031c3a3ae6ec
2015-09-14we need to use a set tocheck uniqueness of paths for gbuild-to-ide scriptMarkus Mohrhard
Change-Id: Ic74655c18296e0b69b3f66a7a9ccea8e4c405dbf
2015-08-31Revert "exclude unnamed Library/Executable from ide integration"Markus Mohrhard
This reverts commit 93cd7b78c29c11ccc87c19c845c6617acb834630. We need to generate project files for unnamed projects as they seem to correspond to libraries. If that causes problems for the msvc integration (which seems strange) then we need to handle these problems in the MSVC generator and not in the parser. It also includes: Revert "Clean trailing whitespace" This reverts commit 7d92b27aff3b4d1c59aef9866003f4d001c0fc25.
2015-08-23Clean trailing whitespaceMaxim Monastirsky
Change-Id: I3b4adb5ac75b9761ae058834e3e64779a07851c9
2015-08-23exclude unnamed Library/Executable from ide integrationbrinzing
unnamed (None) Library/Executable will prevent correct vs 2013 ide integration Change-Id: Ia00c02609a83b5f891995e54fd3f365cd63cb7a4 Reviewed-on: https://gerrit.libreoffice.org/17933 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-12gbuild-to-ide: Don't try to remove files that don't exist.Maxim Monastirsky
Failed with lo.pro and lo.pro.user Change-Id: I47ffd5cb31edb29d0f501a2a15c6b7ca4b93db87
2015-08-02QtCreator integration : generate lo.pro.user project file.Michel Renon
That project file handles 12 global build options : 6 about tests, 3 about clean, 2 about l10n, 1 default. There is one run command to launch 'soffice'. Note that QtCreator will add automatically run commands for each subproject. Change-Id: I3650a9041654cbec7d51d8cbb7951a11ed49aad5 Reviewed-on: https://gerrit.libreoffice.org/17458 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-07-29More whitespace missedMaxim Monastirsky
Change-Id: I045f72c66a80984650bc523489bd89ed96230c57
2015-07-28QtCreator integration : remove unnecessary whitespaces.Michel Renon
Change-Id: Iee8a6add830be94e6a6942dc9c4464b1a91656ff Reviewed-on: https://gerrit.libreoffice.org/17389 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-07-27tdf#92561 : QtCreator doesn't find any generated c++ headers.Michel Renon
Use lib.include to list : - all include paths (with generated c++ headers), - header files for each lib/module. Change-Id: I44f20ddbcaf2ffa844ec02977dea10f32fe9d92f Reviewed-on: https://gerrit.libreoffice.org/17055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-07-20tdf#92560 : QtCreator integration complains about a "ucpp" without a .pro fileMichel Renon
The script gbuild-to-ide now handles correctly specific case where a module is not a direct subfolder of LibreOffice base folder. Currently, 3 modules : external/neon, external/clucene, external/ucpp. Change-Id: I9477519a530439d43919b4e1b51dc2c71ee05fe0 Reviewed-on: https://gerrit.libreoffice.org/17054 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-05-25QtCreator IDE integration.Michel Renon
First version of QtCreator IDE integration : 'make qtcreator-ide-integration' generates .pro and .pro.user files for each subfolder of LibreOffice. It also creates a 'lo.pro' meta project that list all other .pro files. Developers can use use QtCreator to edit, compile and debug LibreOffice. Change-Id: Ib05d8c36a7ca055ecd7a4db5776f4c28bf05676c Reviewed-on: https://gerrit.libreoffice.org/15804 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-05-19An attempt to fix xcode-ide-integrationYurii Kolesnykov
Added more Xcode specific files to .gitignore. Made some properties common in gbuil-to-ide to avoid code duplication/bugs. Xcode projects are broken for now. Change-Id: I9530435ffe54158ae68ddae0581ac68f968af235 Reviewed-on: https://gerrit.libreoffice.org/15694 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-03-30fix gbuild-to-ide scriptMarkus Mohrhard
Change-Id: Iff624d9e31ef5ba7d87b92124c60b02cd577c50b
2015-03-25fdo#84628 Created .project file generator.Gulsah Kose
This patch is starting to EclipseCDT Integration. Written the .project file generating function. Change-Id: If38077561820d9a333d186a2785ecddd1113fe92 Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/14871 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-09Remove extra new-line characters before regex matching in gbuild-to-ide.Ashod Nakashian
At least on some 64-bit Cygwin installations, the input gbuild-to-ide gets include \r\n EOL. Python3 regex excludes \n from .* but leaves \r in the matching group. This training cr ends up in the file paths in VS project files, breaking it as they are invalid characters. Change-Id: I481c1adbf6f6db7ab0ee0d3a768b7a397dc78ee5 Reviewed-on: https://gerrit.libreoffice.org/13803 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-10-09make gbuild-to-ide VS files work with separate builddirPeter Foley
Change-Id: I847885885ed12dbbd64e3b694799e4835497d736 Reviewed-on: https://gerrit.libreoffice.org/11799 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-10-08gbuild-to-ide improvmentsPeter Foley
Use gperf instead of ls to find binpath, so that vs2012/3 can be tested on non-Windows systems. Output the vcxproj and vcxproj.filters files with indentation and formatting. Make some minor changes to improve pep8 compliance. Change-Id: Ie8ac11ecf75ad170f0756f803c45356685792e5c Reviewed-on: https://gerrit.libreoffice.org/11797 Tested-by: David Ostrovsky <david@ostrovsky.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-10-03gbuild-to-ide: Add support for vs2013David Ostrovsky
Change-Id: I385e756109ab0a47feeeb4407ba4a2a4b68548dd Reviewed-on: https://gerrit.libreoffice.org/11728 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net>
2014-10-01gbuild-to-ide: Make it work for GNU make 4.xDavid Ostrovsky
Since GNU make 4.0 the output of --print-data-base command has been slightly changed, so that class specific attributed aren'tt prefixed with "#" char any more. To prevent the duplication of used regexs or discontinuation of supporting widely used GNU make version 3.8x detect the case that matches this regex: target : VAR := VALUE pand repend '#' character to retry the match for "pseudo" hash-starting line. This way the same script works for both worlds. Test Plan: * have full build of LibreOffice * install GNU make 4 * verify that gbuild-to-ide is able to parse and emit sane debug project configuration for both GNU make versions: $ make-3.8 debug-ide-integration $ make-4 debug-ide-integration Change-Id: I7d760d9570f2df510571cc1e8fd7f31115d43b92 Reviewed-on: https://gerrit.libreoffice.org/11751 Tested-by: Peter Foley <pefoley2@verizon.net> Reviewed-by: Peter Foley <pefoley2@verizon.net>
2014-09-26improve gbuild-to-ide error messagePeter Foley
Change-Id: Ia8986764e48f1dbe39374d511a188bd2b5f49e13 Reviewed-on: https://gerrit.libreoffice.org/11654 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-09-24Make gbuild-to-ide more pep8 compliantPeter Foley
Minor style cleanup Remove unused variables Change-Id: Id4c190f24f51dfc676c268dac1c19e3f03d3988d Reviewed-on: https://gerrit.libreoffice.org/11633 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-09-24Make gbuild-to-ide bail out before parsing if ide type is invalidPeter Foley
Also fix the vim modeline to maintain consistant formatting Change-Id: Ia42ec2a69f9c3037a6390ca4f5c4198031b7aa64 Reviewed-on: https://gerrit.libreoffice.org/11632 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-09-06clang does not like gnu++11 that much, use c++11 insteadMarkus Mohrhard
Change-Id: I82c3a4da388cf436ba4f5380c5833a451e28cfd5
2014-08-11write directly files understood by YCMMarkus Mohrhard
Change-Id: I262050f625a0b3ff04a274c88b446d1c2b2aa19d Reviewed-on: https://gerrit.libreoffice.org/10821 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-08-11add a IDE generator for clang json database formatMarkus Mohrhard
This can be used for YouCompleteMe a vim plugin that allows auto-completition based on clang. This is much better than the normal static analyzer based auto-completition. Change-Id: I4872d2cb3b3a404af55eacf5c71d6a2715771ab6 Reviewed-on: https://gerrit.libreoffice.org/10820 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-08-11add the cxx flags to the ide parserMarkus Mohrhard
Change-Id: Ied5f8ec9af69365e3375de26d325984c57327460 Reviewed-on: https://gerrit.libreoffice.org/10819 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-08-11split isystem includes from normal includesMarkus Mohrhard
All includes coming from isystem where wrong as the regex was not able to recognize that the isystem and following path belong together. Additionally stripping the first two characters resulted in broken paths in this case. Change-Id: Iaa8e484d1ddcd4c8744d1e37a006ebf915cdfc84 Reviewed-on: https://gerrit.libreoffice.org/10815 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-07-03Don't stop on os.makedirs when making vs2012-ide-integrationNiklas Johansson
At the moment it always stops on folders that already exists. See https://bugs.freedesktop.org/show_bug.cgi?id=70414#c18 and the following comments for example of the error messages that I face without this patch. Change-Id: I1a1f337872ce3a817d425ff10255e3ae9a73c1a2 Reviewed-on: https://gerrit.libreoffice.org/10062 Tested-by: Fridrich Strba <fridrich@documentfoundation.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
2014-02-23fdo#70414: Use correct target names for building Visual Studio projects.Honza Havlíček
Visual Studio projects use target Library_{library_name}/Executable_{executable_name} for building the project and Library_{library_name}.clean/Executable_{executable_name}.clean for cleaning the project. In most cases, the name of library/executable is identical to the name of Library_*/Executable_* makefile, but in ~12 cases, the names are different (e.g. makefile is Library_syssh_win, but target is Library_syssh). VS fails when it tries to build the project with incorrect target name. This patch replaces the names of targets with correct ones. Dependences also used incorrect names of libraries. Change-Id: Ifba50465512e24e65a3c6505a5f40d477ec8cdd9 Reviewed-on: https://gerrit.libreoffice.org/8189 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-21fdo#70414: Add dependencies for solution and create solution for all projectsHonza Havlíček
Add new Visual Studio solution for all generated projects with name LibreOffice.sln and add dependencies between projects that are in same solution. That allows building by "Build Solution" from menu of Visual Studio for most projects (12 projects out of 319 fail). Change-Id: I834f36f01dfa64ce43a5f9da605efbeefc92bc66 Reviewed-on: https://gerrit.libreoffice.org/8150 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12Fixes for kdevelop IDE integrationAdam Mróz
Script bin/gbuild-to-ide is parsing messages basing on regular expressions. First problem appears when used language is not English - that's why setting LC_MESSAGES variable in Makefile. Second problem appears with quote symbol. For me (Archlinux) script was not working. After some investigation I found out that reason was that my output from make included ' symbol when regular expression assumed that it should be `. That's why using [\'`]. Example: recipe to execute (from '/home/sadam/libreoffice/core/idlc/Executable_idlc.mk', line 28): Conflicts: bin/gbuild-to-ide Change-Id: I0083c69820bd58ce2ac296f21985408c69840639 Reviewed-on: https://gerrit.libreoffice.org/7979 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-10fdo#70414 Added generator of VS2012 project filesHonza Havlíček
Change-Id: Ib087a24ae6de049ffb6d93b5ac66452700edddb3 Reviewed-on: https://gerrit.libreoffice.org/7955 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2013-12-06Source more PEP8 friendlyJesús Corrius
Change-Id: I033f2a365454c9f98ce2c34f7d1d5ad3c1516202
2013-11-28Point to some documentationTor Lillqvist
Change-Id: Ia467db7fd2ebaf85600e5a0c9f11f1e576363177
2013-11-27Add initial hacks for eventual Xcode supportTor Lillqvist
Just some late-night hacking without much thinking whether it makes any sense and without any clear picture of what I am doing. Probably useless. No promises I will ever continue on this. Change-Id: Ie61925129bb678a17b30cb25a7882ccfe3a1de82
2013-11-26Make it easier to debug the gbuild-to-ide scriptTor Lillqvist
Add an --input option so that the input doesn't have to be generated each time but can (manually) be stored in a file and that then given to the script when debugging it interactively. Change-Id: Icdb6abc828c6d16e29a99494d00eb0c8435f2826
2013-11-26Add Emacs modesTor Lillqvist
Change-Id: If5e171ba124722b20b49470a77ee6bca21ae635c
2013-11-19related fdo#70414 gbuild to ide: kdevelopBjoern Michaelsen
This provides kdevelop integration and generates one project file for each old-style module (top level dir). This project file has: - has four build configurations: - build the module of the project or build all of LibreOffice - for each of the above a debug and a nondebug build - has seven launch targets: - running the unitchecks, the slowchecks and subsequentchecks - for each of the above once for the module and once for all - running LibreOffice interactively - has custom include paths and thus provides full autocompletion Change-Id: I6dd51133147d019fc403e3bd814bc6103df94cac Reviewed-on: https://gerrit.libreoffice.org/6694 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>