From 815e3920a716e75761948599b836af010025a48d Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 30 Sep 2017 12:57:25 -0500 Subject: DEVTOOLS: Add theoradec support to Xcode create_project --- devtools/create_project/xcode.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'devtools') diff --git a/devtools/create_project/xcode.cpp b/devtools/create_project/xcode.cpp index 00ef800af4..da4e69860f 100644 --- a/devtools/create_project/xcode.cpp +++ b/devtools/create_project/xcode.cpp @@ -485,11 +485,14 @@ void XcodeProvider::setupFrameworksBuildPhase(const BuildSetup &setup) { if (CONTAINS_DEFINE(setup.defines, "USE_PNG")) { DEF_LOCALLIB_STATIC("libpng"); } - if (CONTAINS_DEFINE(setup.defines, "USE_VORBIS")) { + if (CONTAINS_DEFINE(setup.defines, "USE_VORBIS") || CONTAINS_DEFINE(setup.defines, "USE_THEORADEC")) { DEF_LOCALLIB_STATIC("libogg"); DEF_LOCALLIB_STATIC("libvorbis"); DEF_LOCALLIB_STATIC("libvorbisfile"); } + if (CONTAINS_DEFINE(setup.defines, "USE_THEORADEC")) { + DEF_LOCALLIB_STATIC("libtheoradec"); + } if (CONTAINS_DEFINE(setup.defines, "USE_ZLIB")) { DEF_SYSTBD("libz"); } @@ -552,11 +555,14 @@ void XcodeProvider::setupFrameworksBuildPhase(const BuildSetup &setup) { if (CONTAINS_DEFINE(setup.defines, "USE_PNG")) { frameworks_iOS.push_back("libpng.a"); } - if (CONTAINS_DEFINE(setup.defines, "USE_VORBIS")) { + if (CONTAINS_DEFINE(setup.defines, "USE_VORBIS") || CONTAINS_DEFINE(setup.defines, "USE_THEORADEC")) { frameworks_iOS.push_back("libogg.a"); frameworks_iOS.push_back("libvorbis.a"); frameworks_iOS.push_back("libvorbisfile.a"); } + if (CONTAINS_DEFINE(setup.defines, "USE_THEORADEC")) { + frameworks_iOS.push_back("libtheoradec.a"); + } if (CONTAINS_DEFINE(setup.defines, "USE_MAD")) { frameworks_iOS.push_back("libmad.a"); } @@ -632,11 +638,14 @@ void XcodeProvider::setupFrameworksBuildPhase(const BuildSetup &setup) { if (CONTAINS_DEFINE(setup.defines, "USE_PNG")) { frameworks_osx.push_back("libpng.a"); } - if (CONTAINS_DEFINE(setup.defines, "USE_VORBIS")) { + if (CONTAINS_DEFINE(setup.defines, "USE_VORBIS") || CONTAINS_DEFINE(setup.defines, "USE_THEORADEC")) { frameworks_osx.push_back("libogg.a"); frameworks_osx.push_back("libvorbis.a"); frameworks_osx.push_back("libvorbisfile.a"); } + if (CONTAINS_DEFINE(setup.defines, "USE_THEORADEC")) { + frameworks_osx.push_back("libtheoradec.a"); + } if (CONTAINS_DEFINE(setup.defines, "USE_ZLIB")) { frameworks_osx.push_back("libz.tbd"); } -- cgit v1.2.3