Discussion:
[cmake-developers] Adding a non-make based generator
Saeed, Khurram
2018-02-02 15:05:19 UTC
Permalink
Hi,
Nucleus ReadyStart<https://www.mentor.com/embedded-software/nucleus/readystart/> is an eclipse<https://www.eclipse.org/ide/> based IDE by Mentor Embedded(tm). It is used for creating and building C/C++ based Nucleus RTOS<https://www.mentor.com/embedded-software/nucleus/> projects for embedded devices.
We have added a new generator in CMake to give the option of generating Nucleus ReadyStart based projects to our customers. This is not a 'make-based' generator as Nucleus ReadyStart projects are built using Eclipse CDT managed build system. In this generator we are generating .project and .cproject files for Nucleus ReadyStart application.

Do you think we can contribute this generator to community?

Thanks and Best Regards,
Khurram Saeed, Senior Technical Lead, Mentor Graphics
***@mentor.com<mailto:***@mentor.com>
www.mentor.com<http://www.mentor.com>
Alexander Neundorf
2018-02-02 21:50:00 UTC
Permalink
Hi Saeed,
Post by Saeed, Khurram
Hi,
Nucleus
ReadyStart<https://www.mentor.com/embedded-software/nucleus/readystart/> is
an eclipse<https://www.eclipse.org/ide/> based IDE by Mentor Embedded(tm).
It is used for creating and building C/C++ based Nucleus
RTOS<https://www.mentor.com/embedded-software/nucleus/> projects for
embedded devices. We have added a new generator in CMake to give the option
of generating Nucleus ReadyStart based projects to our customers. This is
not a 'make-based' generator as Nucleus ReadyStart projects are built using
Eclipse CDT managed build system. In this generator we are generating
.project and .cproject files for Nucleus ReadyStart application.
Do you think we can contribute this generator to community?
does that mean it also works for "normal" Eclipse CDT, or only for ReadyStart
?
If it works for Eclipse in general, I would happily remove the current Eclipse
CDT generator (which I wrote).
Do all tests pass using your generator ?

Alex
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Saeed, Khurram
2018-02-07 12:09:54 UTC
Permalink
Hi Neundorf,
This generator can only be used for generating Nucleus ReadyStart IDE projects. It generates Eclipse CDT project files that use ReadyStart specific plugins and configurations.

Best Regards,
Khurram

-----Original Message-----
From: Alexander Neundorf [mailto:***@kde.org]
Sent: Saturday, February 03, 2018 2:50 AM
To: cmake-***@cmake.org
Cc: Saeed, Khurram <***@mentor.com>
Subject: Re: [cmake-developers] Adding a non-make based generator

Hi Saeed,
Post by Saeed, Khurram
Hi,
Nucleus
ReadyStart<https://www.mentor.com/embedded-software/nucleus/readystart
/> is an eclipse<https://www.eclipse.org/ide/> based IDE by Mentor Embedded(tm).
It is used for creating and building C/C++ based Nucleus
RTOS<https://www.mentor.com/embedded-software/nucleus/> projects for
embedded devices. We have added a new generator in CMake to give the
option of generating Nucleus ReadyStart based projects to our
customers. This is not a 'make-based' generator as Nucleus ReadyStart
projects are built using Eclipse CDT managed build system. In this
generator we are generating .project and .cproject files for Nucleus ReadyStart application.
Do you think we can contribute this generator to community?
does that mean it also works for "normal" Eclipse CDT, or only for ReadyStart ?
If it works for Eclipse in general, I would happily remove the current Eclipse CDT generator (which I wrote).
Do all tests pass using your generator ?

Alex
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Alexander Neundorf
2018-02-07 21:02:35 UTC
Permalink
Hi Kurram,
Post by Saeed, Khurram
Hi Neundorf,
This generator can only be used for generating Nucleus ReadyStart IDE
projects. It generates Eclipse CDT project files that use ReadyStart
specific plugins and configurations.
I have the impression Brad was not overly excited.
On the other I have the impression that the Eclipse CDT team is also not
overly excited of the cmake server mode (at least 2 years ago when I was on
the mailing list).

Would it be hard to extend your generator so that it can also be used for
"normal" Eclipse CDT projects ? Is it already available somewhere, e.g. github
?

Alex
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Saeed, Khurram
2018-02-09 13:16:19 UTC
Permalink
Hi Alex,

I have not made it available anywhere so far. Although my target while writing this generator was only to make it work for ReadyStart projects. However, I think with some effort down the road it might be possible to use it for normal Eclipse CDT projects as well.

We want to make it available to general public but we have been wondering whether or not it would be "acceptable" to have a generator that generates managed Eclipse CDT projects?

Best Regards,
Khurram

-----Original Message-----
From: Alexander Neundorf [mailto:***@kde.org]
Sent: Thursday, February 08, 2018 2:03 AM
To: Saeed, Khurram <***@mentor.com>
Cc: cmake-***@cmake.org
Subject: Re: [cmake-developers] Adding a non-make based generator

Hi Kurram,
Post by Saeed, Khurram
Hi Neundorf,
This generator can only be used for generating Nucleus ReadyStart IDE
projects. It generates Eclipse CDT project files that use ReadyStart
specific plugins and configurations.
I have the impression Brad was not overly excited.
On the other I have the impression that the Eclipse CDT team is also not overly excited of the cmake server mode (at least 2 years ago when I was on the mailing list).

Would it be hard to extend your generator so that it can also be used for "normal" Eclipse CDT projects ? Is it already available somewhere, e.g. github ?

Alex
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Alexander Neundorf
2018-02-09 20:03:18 UTC
Permalink
Hi,
Post by Saeed, Khurram
Hi Alex,
I have not made it available anywhere so far. Although my target while
writing this generator was only to make it work for ReadyStart projects.
However, I think with some effort down the road it might be possible to use
it for normal Eclipse CDT projects as well.
We want to make it available to general public but we have been wondering
whether or not it would be "acceptable" to have a generator that generates
managed Eclipse CDT projects?
well, Brad is the maintainer.
I think in general a "real" Eclipse CDT project generator would be preferred
over the existing one which generates a makefile-based project for Eclipse.

I could try to support you a bit.

Does it support generating the project in the build dir, i.e. outside the
source dir (or in a subdir of the source dir), and does then the Eclipse
version control plugin (svn/git) work ?

Alex
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Saeed, Khurram
2018-02-14 18:46:52 UTC
Permalink
Thanks Alex.
Yes it does support generating the project in the build dir. It also works while generating in a subdir of the source dir. Eclipse version control plugin also works (I am using git).

Best Regards,
Khurram

-----Original Message-----
From: Alexander Neundorf [mailto:***@kde.org]
Sent: Saturday, February 10, 2018 1:03 AM
To: Saeed, Khurram <***@mentor.com>
Cc: cmake-***@cmake.org
Subject: Re: [cmake-developers] Adding a non-make based generator

Hi,
Post by Saeed, Khurram
Hi Alex,
I have not made it available anywhere so far. Although my target while
writing this generator was only to make it work for ReadyStart projects.
However, I think with some effort down the road it might be possible
to use it for normal Eclipse CDT projects as well.
We want to make it available to general public but we have been
wondering whether or not it would be "acceptable" to have a generator
that generates managed Eclipse CDT projects?
well, Brad is the maintainer.
I think in general a "real" Eclipse CDT project generator would be preferred over the existing one which generates a makefile-based project for Eclipse.

I could try to support you a bit.

Does it support generating the project in the build dir, i.e. outside the source dir (or in a subdir of the source dir), and does then the Eclipse version control plugin (svn/git) work ?

Alex
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Alexander Neundorf
2018-02-14 21:16:54 UTC
Permalink
Post by Saeed, Khurram
Thanks Alex.
Yes it does support generating the project in the build dir. It also works
while generating in a subdir of the source dir. Eclipse version control
plugin also works (I am using git).
Interesting.
How did you get that working ?

Let's say the directories look like this:

src/CMakeLists.txt
build/CMakeCache.txt
build/.project
build/.cproject

I guess this is what you generate, right ?
How do you get the source tree into this project ?
The Eclipse-generator in cmake uses a "linked resource" to the source dir, but
the version control plugin is not activated for those files.
According to the Subversion-Plugin developers this is because the source files
are then outside the "project directory", i.e. no below the directory where
the .project file is located.

So I'm really interested how you got that working.
Can you send the .project and .cproject files for a simple hello-world project,
built out-of-source ?

Alex
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Alexander Neundorf
2018-04-17 20:15:31 UTC
Permalink
Hi,
Post by Alexander Neundorf
Post by Saeed, Khurram
Thanks Alex.
Yes it does support generating the project in the build dir. It also works
while generating in a subdir of the source dir. Eclipse version control
plugin also works (I am using git).
Interesting.
How did you get that working ?
src/CMakeLists.txt
build/CMakeCache.txt
build/.project
build/.cproject
I guess this is what you generate, right ?
How do you get the source tree into this project ?
The Eclipse-generator in cmake uses a "linked resource" to the source dir,
but the version control plugin is not activated for those files.
According to the Subversion-Plugin developers this is because the source
files are then outside the "project directory", i.e. no below the directory
where the .project file is located.
So I'm really interested how you got that working.
Can you send the .project and .cproject files for a simple hello-world
project, built out-of-source ?
any news here ?

Alex
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Brad King
2018-02-05 12:35:27 UTC
Permalink
Post by Saeed, Khurram
In this generator we are generating .project and .cproject files
for Nucleus ReadyStart application.
Are those files driving the actual build?

These days the way to support IDEs tends to be using the
cmake server mode:

https://cmake.org/cmake/help/v3.10/manual/cmake-server.7.html

along with one of the existing generators.

-Brad
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Saeed, Khurram
2018-02-09 13:00:46 UTC
Permalink
Hi Brad,

Yes those files are driving the actual build. I cannot use one of the existing generators because Nucleus ReadyStart projects are built using Eclipse CDT managed build system.

Best Regards,
Khurram


-----Original Message-----
From: cmake-developers [mailto:cmake-developers-***@cmake.org] On Behalf Of Brad King
Sent: Monday, February 05, 2018 5:35 PM
To: cmake-***@cmake.org
Subject: Re: [cmake-developers] Adding a non-make based generator
Post by Saeed, Khurram
In this generator we are generating .project and .cproject files for
Nucleus ReadyStart application.
Are those files driving the actual build?

These days the way to support IDEs tends to be using the cmake server mode:

https://cmake.org/cmake/help/v3.10/manual/cmake-server.7.html

along with one of the existing generators.

-Brad
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Loading...