Browse Source

Projucer: Suppress warnings about using the OpenGL framework when using the new build system

tags/2021-05-28
ed 5 years ago
parent
commit
6e6f866458
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h

+ 13
- 0
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h View File

@@ -1398,6 +1398,19 @@ public:
s.set ("HEADER_SEARCH_PATHS", indentParenthesisedList (headerPaths, 1));
s.set ("USE_HEADERMAP", String (static_cast<bool> (config.exporter.settings.getProperty ("useHeaderMap")) ? "YES" : "NO"));
auto frameworksToSkip = [this]() -> String
{
const String openGLFramework (owner.iOS ? "OpenGLES" : "OpenGL");
if (owner.xcodeFrameworks.contains (openGLFramework))
return openGLFramework;
return {};
}();
if (frameworksToSkip.isNotEmpty())
s.set ("VALIDATE_WORKSPACE_SKIPPED_SDK_FRAMEWORKS", frameworksToSkip);
auto frameworkSearchPaths = getFrameworkSearchPaths (config);
if (! frameworkSearchPaths.isEmpty())


Loading…
Cancel
Save