DEVTOOLS: Adapt create_project for libjpeg support.

The library name of the static library is based on what libjpeg-turbo uses
which should be fine for Windows at least.

Untested except for compilation of create_project.
This commit is contained in:
Johannes Schickel 2013-09-17 02:31:04 +02:00
parent 783aa9977c
commit 856da53e8b
2 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,11 @@ std::string processLibraryName(std::string name) {
if (pos != std::string::npos)
return name.replace(pos, 7, "");
// Remove "-static" in lib name
pos = name.find("-static");
if (pos != std::string::npos)
return name.replace(pos, 7, "");
// Replace "zlib" by "libz"
if (name == "zlib")
return "libz";

View File

@ -845,6 +845,7 @@ const Feature s_features[] = {
{ "mpeg2", "USE_MPEG2", "libmpeg2", false, "MPEG-2 support" },
{ "theora", "USE_THEORADEC", "libtheora_static", true, "Theora decoding support" },
{"freetype", "USE_FREETYPE2", "freetype", true, "FreeType support" },
{ "jpeg", "USE_JPEG", "jpeg-static", true, "libjpeg support" },
// Feature flags
{ "bink", "USE_BINK", "", true, "Bink video support" },