KeyWorksRW / ttBld

Creates a makefile and Ninja build scripts from a simple YAML file (.srcfiles.yaml)
Other
2 stars 0 forks source link

Need support for Libs:, LibsR, and LibsD #66

Open Randalphwa opened 5 years ago

Randalphwa commented 5 years ago

Description:

Problem encountered with wxWidgets is that debug and release libraries have very different names, so we can't rely on a 'D' being at the end of the name. That means we need to do the same with the Libs: option that we did for flags--have a Common, Release, and Debug version.

Note that the Linker tab doesn't have the space to support the additional fields. Probably best to create a Libs tab and move all the library flags there, leaving the Link tab for flags and NATVIS.

Issue Type:

Randalphwa commented 5 years ago

In addition to implementing LibsR: and LibsD: flags, I've also added code to look at each library specified in Libs: and seeing if we can find a variation with the platform and optional debug suffix. That works for libraries that we control. So for example, specifying wxMain will result in linking to wxMain64D in 64-bit debug builds, and wxMain32.lib in 32-bit release builds.