From ce1547aa66243f02ad4860f51d5316d3f8ff24e2 Mon Sep 17 00:00:00 2001 From: Timur Doumler Date: Mon, 25 Jan 2016 13:10:44 +0000 Subject: [PATCH] Introjucer Android Studio exporter: added missing export of per-configuration header and library search paths. --- .../Project Saving/jucer_ProjectExport_AndroidStudio.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h index e8c48a50af..62ef8627d1 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h @@ -523,6 +523,14 @@ private: ndkFlags.add ("cppFlags.add(\"-DNDEBUG=1\")"); } + const StringArray& headerSearchPaths = config->getHeaderSearchPaths(); + for (int i = 0; i < headerSearchPaths.size(); ++i) + ndkFlags.add ("cppFlags.add(\"-I" + sanitisePath (headerSearchPaths[i]) + "\".toString())"); + + const StringArray& librarySearchPaths = config->getLibrarySearchPaths(); + for (int i = 0; i < librarySearchPaths.size(); ++i) + ndkFlags.add ("cppFlags.add(\"-L" + sanitisePath (librarySearchPaths[i]) + "\".toString())"); + { StringPairArray preprocessorDefinitions = config->getAllPreprocessorDefs(); preprocessorDefinitions.set ("JUCE_ANDROID", "1");