Author Topic: Platform-depended libraries set  (Read 4274 times)

Offline G-Shadow

  • Multiple posting newcomer
  • *
  • Posts: 16
Platform-depended libraries set
« on: October 05, 2014, 04:50:51 pm »
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!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: Platform-depended libraries set
« Reply #1 on: October 05, 2014, 08:25:51 pm »
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++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Platform-depended libraries set
« Reply #2 on: October 05, 2014, 08:45:57 pm »
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!]

Offline G-Shadow

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Platform-depended libraries set
« Reply #3 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: Platform-depended libraries set
« Reply #4 on: October 06, 2014, 06:45:56 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.
 
« Last Edit: October 06, 2014, 06:47:38 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org