News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Platform-depended libraries set

Started by G-Shadow, October 05, 2014, 04:50:51 PM

Previous topic - Next topic

G-Shadow

Hi.
I have a cross-platform project that should build under Linux and Windows.
I have Debug and Release targets now and planning add one or two more.
All options are the same for both Lin/Win platforms with exception of linked libraries list.
Is there are any way to make libraries link platform-depended to prevent creating Debug-Win, Debug-Lin, Releas-Win, Release-Lin targets (and maintaining its future changes)?
Thanks!

stahta01

Might see if scripting will do this. I have no idea if it will or will not do it.

Anyone know, if CB scripting can test for Operating System?

If not, I think it is a good feature to add.

Tim S.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Yes it can but it will look a bit ugly.

Generally it depends on the differences between the options you're trying to pass.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

G-Shadow

I had found this solution with scripting before creating this post.
But I hope some new features appears since 2008 year.

stahta01

#4
Quote from: G-Shadow on October 06, 2014, 06:04:48 PM
I had found this solution with scripting before creating this post.
But I hope some new features appears since 2008 year.

That looks ugly; I think I would make a OS script/batch file that returns the values needed like wx-config does for wxWidgets.

Note: That will be more work in the beginning; but, I think it might pay off if used often enough.

Edit: I have never used a Project Script; maybe it would hide some of the looks.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]