Out of source directory build 3

View: New views
1 Messages — Rating Filter:   Alert me  

Out of source directory build 3

by Sébastien Granjoux :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I have completely rewritten build-basic-autotools/build-options.c file
written by Johannes.

Now you can select in which directory you want to run configure or
autogen.sh.

It means that there is a project_root_uri and a, possibly different,
project_build_uri. Now I need some support in the project manager to be
able to select the right build uri.


I plan to add the following functions in IAnjutaProjectManager:

* void add_configuration (const gchar *name, const gchar *uri);

This will be called after running configure, to add a new configuration
in the current project. A configuration is just an user defined name
associated with a build directory. There are some default names Debug,
Optimized and Profiling, but the user could add other ones.

All the configuration names and their associated build directory will be
save by the project manager in the .anjuta/session/anjuta.session file
using on_session_save. I think I'm extending a bit the use of this file
(as it's a bit more than an user preference) but I haven't found a
better idea.

* gboolean remove_configuration (const gchar *name);

This will remove a already defined configuration. I plan to use it after
doing make distclean in the build plugin.

* List<const gchar*> list_configuration (const gchar *name);

This will list all configurations. I don't see an use for the moment.

* gboolean select_configuration (const gchar *name);

This will select the current configuration which mean the current build
directory. I plan to add a submenu in the Project menu item allowing to
display all configuration and select one.


I don't plan to add an user interface in the Project menu item to add or
remove a configuration. This will be done in the Build plugin. So a
configuration will not exist until you run configure.

By example instead of doing something like
- Select Debug configuration in the project
- Run configure
You have to
- Run configure using Debug configuration (that will automatically
select the Debug configuration in the project).

It means that you cannot run configure without any argument, like you
can run all other build commands.


I hope to be able to commit this in 1 or 2 weeks.

Regards,

Sébastien

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Anjuta-devel mailing list
Anjuta-devel@...
https://lists.sourceforge.net/lists/listinfo/anjuta-devel
LightInTheBox - Buy quality products at wholesale price