Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: LETARTARE on March 06, 2018, 08:53:49 am

Title: CB project: integrated 'update'
Post by: LETARTARE on March 06, 2018, 08:53:49 am
Hello, :-X
to compile a last version of 'Code :: Blocks', I use as IDE a previous version.
After compiling 'Code :: Blocks', it is tedious to open a console to launch 'update (.bat)'.

I tested the following solution with VISTA and OpenSuse :
1- create a real target 'Update' , 'Command only' type,  'Pos-built steps' with a call to 'update.bat' or './update'
2- in the virtual target 'All': add in last this target 'Update'

This makes it possible to integrate the update into the construction process.

I may have forgotten some things ?




Title: Re: CB project: integrated 'update'
Post by: ollydbg on March 06, 2018, 03:54:07 pm
This is a good idea, great!
My question is: When will the target named "Update" to be "built"? I mean You just manually click the "build" button to "build" the "Update" target?
Title: Re: CB project: integrated 'update'
Post by: LETARTARE on March 06, 2018, 04:32:05 pm
Here is the kind of interesting question.
I just did a test on 'svn11176' that I cleaned up, then I compiled the 'Update' target under VISTA.
The result is in image ...

Title: Re: CB project: integrated 'update'
Post by: BlueHazzard on March 06, 2018, 05:59:46 pm
You could also add the update target it to the "All" target at the end. So it will always be running after rebuilding codeblocks.

One problem i see here is, that if you build the codeblocks workspace with all plugins you have to run this update script at the end of the build process of all plugins.
Title: Re: CB project: integrated 'update'
Post by: LETARTARE on March 06, 2018, 06:19:15 pm
Thank you for the information :

You say :
Quote
You could also add the update target it to the "All" target at the end.
Of course, as indicated -> 'last'
Quote
2- in the virtual target 'All': add in  last  this target 'Update'

You also indicate :
Quote
you have to run this update script at the end of the build process of all plugins

This is a good question, but I have not tested it yet.

Is it a problem ?
Title: Re: CB project: integrated 'update'
Post by: LETARTARE on March 06, 2018, 07:39:11 pm
@BlueHazzard say :
Quote
you have to run this update script at the end of the build process of all plugins
I note that many plugins call 'update' including the latest 'Tools Plus Plugin'.
It is then possible in the project to remove the call of 'update' in the virtual target 'All'.

If we add another plugin in the end it should be expected while he calls 'update' !!
Title: Re: CB project: integrated 'update'
Post by: stahta01 on March 06, 2018, 07:49:00 pm
@BlueHazzard say :
Quote
you have to run this update script at the end of the build process of all plugins
I note that many plugins call 'update' including the latest 'Tools Plus Plugin'.
It is then possible in the project to remove the call of 'update' in the virtual target 'All'.

If we add another plugin in the end it should be expected while he calls 'update' !!

There is more than a single update scripts/batch files

Some plugins have there own, instead of, or in addition to the main update script.

NOTE: Calling the  update script in the virtual target 'All' would not work for my normal build process.
Edit: This is on Windows; because in use file replacement is not supported by the OS.
I use output codeblocks to build devel codeblocks; exit codeblocks, then run main update script

Tim S.
Title: Re: CB project: integrated 'update'
Post by: LETARTARE on March 07, 2018, 08:37:39 am
@stahta01
thank you for the clarification.

Quote
This is on Windows; because in use file replacement is not supported by the OS.
If you are using a previous version of 'Code::Block' for compilation, you can use the main 'update.bat' call in 'All' virtual target.
Ex :I used 'cb-11286' to build 'cb-11304' without difficulty ( for 'CodeBlocks.cbp'  and 'CodeBlocks-unix.cbp' )

Quote
I use output codeblocks to build devel codeblocks; exit codeblocks, then run main update script
I thought we'd first build devel codeblocks, then leaving codeblocks we launched the main update to build the output codeblocks ?

So, it sounds more complicated than I thought. But I find it sad to have to leave 'Code::Blocks' to finish building.