Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: rj-away on September 24, 2007, 04:09:29 am

Title: A few changes for clean building
Post by: rj-away on September 24, 2007, 04:09:29 am
This is a fairly minor issue, but would it be possible for someone with svn commit access to change the EnvVars project in the ContribPlugins workspace such that it uses relative paths (like every other project in this workspace) rather than the cb global variable? Using the variable, it doesn't seem to play nicely with paths with spaces in them, resulting in the build not working cleanly if the codeblocks source tree is under a directory with a space in the name.

The three places that need to be amended are:

In the 'Properties' of the project, 'Build Targets' tab, 'Output filename' field, change from
Code
$(#cb)\devel\share\codeblocks\plugins\envvars.dll
to
Code
..\..\..\devel\share\codeblocks\plugins\envvars.dll

In the 'Properties' of the project, 'Build Targets' tab, 'Output object dir' field, change from
Code
$(#cb)\.objs\plugins\contrib\envvars
to
Code
..\..\..\.objs\plugins\contrib\envvars

In the 'Build options' of the project, 'Pre/post build steps' tab, 'Post-build steps' field, change from
Code
zip -j9 $(#cb)\devel\share\codeblocks\envvars.zip manifest.xml *.xrc
to
Code
zip -j9 ..\..\..\devel\share\codeblocks\envvars.zip manifest.xml *.xrc
Title: Re: A few changes for clean building
Post by: aindrajaya on July 05, 2017, 08:11:16 pm
Oh good, It's help me  ;D
Title: Re: A few changes for clean building
Post by: aindrajaya on July 05, 2017, 08:11:38 pm
This is a fairly minor issue, but would it be possible for someone with svn commit access to change the EnvVars project in the ContribPlugins workspace such that it uses relative paths (like every other project in this workspace) rather than the cb global variable? Using the variable, it doesn't seem to play nicely with paths with spaces in them, resulting in the build not working cleanly if the codeblocks source tree is under a directory with a space in the name.

The three places that need to be amended are:

In the 'Properties' of the project, 'Build Targets' tab, 'Output filename' field, change from
Code
$(#cb)\devel\share\codeblocks\plugins\envvars.dll
to
Code
..\..\..\devel\share\codeblocks\plugins\envvars.dll

In the 'Properties' of the project, 'Build Targets' tab, 'Output object dir' field, change from
Code
$(#cb)\.objs\plugins\contrib\envvars
to
Code
..\..\..\.objs\plugins\contrib\envvars

In the 'Build options' of the project, 'Pre/post build steps' tab, 'Post-build steps' field, change from
Code
zip -j9 $(#cb)\devel\share\codeblocks\envvars.zip manifest.xml *.xrc
to
Code
zip -j9 ..\..\..\devel\share\codeblocks\envvars.zip manifest.xml *.xrc