Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: MoonKid on September 20, 2007, 09:11:56 pm

Title: export as makefile
Post by: MoonKid on September 20, 2007, 09:11:56 pm
Is there a point on the TODO list to implement a export functionality for C::B projects?

e.g. Export such a project as a bakefile. Then everybody can create its own specifik makefiles from it.

What do you think about that?
Title: Re: export as makefile
Post by: alex.neundorf on September 20, 2007, 09:42:36 pm
Do it the other way round: use cmake and let cmake create a CodeBlocks project or makefile or XCode/MSVC/Eclipse/KDevelop project for Linux/*BSD/Windows/Apple/Sun/HPUX/...

The current codeblocks generator in cmake cvs HEAD (for Windows users there is now a nightly build available at http://www.cmake.org/files/vCVS/ ) generates a makefile based codeblocks project.
A native CB project would also be possible, but that requires a lot more work and somebody to do it.

Alex
Title: Re: export as makefile
Post by: thomas on September 20, 2007, 09:46:14 pm
Quote
Do it the other way round
Right.
Quote
Is there a point on the TODO list...
There is presently no item on the to-do list for that. This doesn't mean it might not implemented one day, just it's not on the schedule.
Title: Re: export as makefile
Post by: MoonKid on September 20, 2007, 09:55:04 pm
Do it the other way round: use cmake and let cmake create a CodeBlocks project or makefile or XCode/MSVC/Eclipse/KDevelop project for Linux/*BSD/Windows/Apple/Sun/HPUX/...

Sorry, but I think I understand nothing of what you sayed. ;)

cmake is just a other buildsystem beside gnumake, nmake, etc?
cmake can create CodeBlocks projects from its own cmake-makefile-format?

Quote
The current codeblocks generator in cmake cvs HEAD (for Windows users there is now a nightly build available at http://www.cmake.org/files/vCVS/ ) generates a makefile based codeblocks project.
A native CB project would also be possible, but that requires a lot more work and somebody to do it.

cmake generate "a makefile based codeblocks project"
"native CB project would also be possible"
What is the difference? cmake generate CB project files AND "native" CB project files? It confusing me.
Title: Re: export as makefile
Post by: kisoft on September 21, 2007, 08:20:55 am
Is there a point on the TODO list to implement a export functionality for C::B projects?

e.g. Export such a project as a bakefile. Then everybody can create its own specifik makefiles from it.

What do you think about that?
Try my plugin. cbMakefileGen being created a simple makefile for exists C::B project.
cbMakefileGen sources available (see below). Binary Win32 only now. My plugin tested on Linux too (Ubuntu).
Title: Re: export as makefile
Post by: Mathieu on March 02, 2008, 10:00:59 am
Do it the other way round: use cmake and let cmake create a CodeBlocks project or makefile or XCode/MSVC/Eclipse/KDevelop project for Linux/*BSD/Windows/Apple/Sun/HPUX/...

Sorry, but I think I understand nothing of what you sayed. ;)

cmake is just a other buildsystem beside gnumake, nmake, etc?
cmake can create CodeBlocks projects from its own cmake-makefile-format?

Quote
The current codeblocks generator in cmake cvs HEAD (for Windows users there is now a nightly build available at http://www.cmake.org/files/vCVS/ ) generates a makefile based codeblocks project.
A native CB project would also be possible, but that requires a lot more work and somebody to do it.

cmake generate "a makefile based codeblocks project"
"native CB project would also be possible"
What is the difference? cmake generate CB project files AND "native" CB project files? It confusing me.

This is a very late answer to this thread, but for future readers it might be good to not leave this question hanging there...

CMake (http://www.cmake.org (http://www.cmake.org)) is to considered as build system generator. You write your project description using the CMake syntax and the CMake tool (command line or graphical) will generate the files for the build system targeted. The build system targets available depend on the OS you use and the available compilers or IDE's you have. For example under windows you might use minGW makefiles, MSVC 6/7/8 solutions or NMake makefiles, under Linux you have gnu Makefiles, KDevelop projects,  under MacOSX you have gnu makefiles but also XCode projects. Recently the Eclipse CDT project target has been added.

What alex.neundorf was trying to say is that Code::Blocks could just be another build system target and that using CMake it would be very (very) easy to switch to another build system/IDE.

HTH
Mathieu
Title: Re: export as makefile
Post by: afb on March 02, 2008, 10:42:44 am
According to the Cmake documentation, it will have a Code::Blocks project file generator soon:
http://www.cmake.org/Wiki/CMake_Generator_Specific_Information#Code::Blocks_Generator

Quote
Starting with version 2.6.0 CMake also comes with a project file generator for the [CodeBlocks IDE].
This support is still in beta and needs feedback in order to mature.

Title: Re: export as makefile
Post by: rjmyst3 on March 03, 2008, 07:32:26 pm
Another alternative for Makefile generation is Premake (http://premake.sf.net). We use Premake (http://premake.sf.net) to generate both Makefiles and Code::Blocks projects for wxFormBuilder (http://www.wxformbuilder.org), and it has been working very well for the past year.
Title: Re: export as makefile
Post by: mandrav on March 03, 2008, 08:08:38 pm
Another alternative for Makefile generation is Premake (http://premake.sf.net). We use Premake (http://premake.sf.net) to generate both Makefiles and Code::Blocks projects for wxFormBuilder (http://www.wxformbuilder.org), and it has been working very well for the past year.

QFT. Premake works very nicely with Code::Blocks.
Title: Re: export as makefile
Post by: jsibarani on March 04, 2008, 12:02:46 pm
Another alternative for Makefile generation is Premake (http://premake.sf.net). We use Premake (http://premake.sf.net) to generate both Makefiles and Code::Blocks projects for wxFormBuilder (http://www.wxformbuilder.org), and it has been working very well for the past year.

QFT. Premake works very nicely with Code::Blocks.

Yeah, i succesfully compiled  wxJavaScript Code::Blocks project files generated by premake.
It just work great