Bug 84628 - gbuild: emit project configuration for Eclipse CDT
Summary: gbuild: emit project configuration for Eclipse CDT
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Libreoffice (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: EasyHack DifficultyBeginner SkillPython
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-03 09:40 UTC by DavidO
Modified: 2014-11-28 17:15 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description DavidO 2014-10-03 09:40:42 UTC
gbuild-to-ide can emit project configuration to number of IDEs. Add an generaor for Eclipse CDT. WAF meta build system does something similar. May be some parts can be reused from [1]

[1] https://code.google.com/p/waf/source/browse/waflib/extras/eclipse.py
Comment 1 DavidO 2014-10-07 13:32:51 UTC
It seems that Eclipse has restriction of having multiple projects in the same directory as Eclipse's project is represented by .project file and only one .project file can exists in one directory. Due to LibreOffice directory structure, there are multiple targets/projects in one directory, e. g.:

svx has number of libraries:

svx
svxcore
[...]

One approach to solve this would be to merge the multiple targets in one Eclipse project and use the union of all includes and defines for all targets in this subdirectory targets. To stay with svx example above, the solution would be to create single project svx and include all sources in this directory tree and use combined includes and all defines from all targets (dvx, svxcore, ...).
Comment 2 Massimiliano 2014-11-28 17:15:00 UTC
Hi, i will try to fix this bug for my first easyhack, is already open?

> It seems that Eclipse has restriction of having multiple projects in the
> same directory as Eclipse's project is represented by .project file and only
> one .project file can exists in one directory. Due to LibreOffice directory
> structure, there are multiple targets/projects in one directory, e. g.:
> 

.project file is an xml that follow this properties [1] But how build-to-ide works? where can i find its source code?


[1] http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fproject_description_file.html


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.