User forums > Using Code::Blocks

Platform-depended libraries set

(1/1)

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.

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.

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

stahta01:

--- 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.

--- End quote ---

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.
 

Navigation

[0] Message Index

Go to full version