private static void SetupMacOptions(DriverOptions options) { options.MicrosoftMode = false; options.NoBuiltinIncludes = true; if (IsMacOS) { var headersPaths = new List <string> { Path.Combine(GetSourceDirectory("deps"), "llvm/tools/clang/lib/Headers"), Path.Combine(GetSourceDirectory("deps"), "libcxx", "include"), "/usr/include", }; foreach (var header in headersPaths) { Console.WriteLine(header); } foreach (var header in headersPaths) { options.addSystemIncludeDirs(header); } } var headersPath = Path.Combine(GetSourceDirectory("build"), "headers", "osx"); options.addSystemIncludeDirs(Path.Combine(headersPath, "include")); options.addSystemIncludeDirs(Path.Combine(headersPath, "clang", "4.2", "include")); options.addSystemIncludeDirs(Path.Combine(headersPath, "libcxx", "include")); options.addArguments("-stdlib=libc++"); }
private static void SetupMacOptions(DriverOptions options) { options.MicrosoftMode = false; options.NoBuiltinIncludes = true; var headersPath = Path.Combine(GetSourceDirectory("build"), "headers", "osx"); options.addSystemIncludeDirs(Path.Combine(headersPath, "include")); options.addSystemIncludeDirs(Path.Combine(headersPath, "clang", "4.2", "include")); options.addSystemIncludeDirs(Path.Combine(headersPath, "libcxx", "include")); options.addArguments("-stdlib=libc++"); }
private static void SetupMacOptions(DriverOptions options) { options.MicrosoftMode = false; options.NoBuiltinIncludes = true; const string MAC_INCLUDE_PATH = @"C:\Development\CppSharp\build\vs2012\lib\Release_x32\"; #if OLD_PARSER options.SystemIncludeDirs.Add(MAC_INCLUDE_PATH + @"include"); options.SystemIncludeDirs.Add(MAC_INCLUDE_PATH + @"lib\libcxx\include"); options.SystemIncludeDirs.Add(MAC_INCLUDE_PATH + @"lib\clang\4.2\include"); options.Arguments.Add("-stdlib=libc++"); #else options.addSystemIncludeDirs(MAC_INCLUDE_PATH + @"include"); options.addSystemIncludeDirs(MAC_INCLUDE_PATH + @"lib\libcxx\include"); options.addSystemIncludeDirs(MAC_INCLUDE_PATH + @"lib\clang\4.2\include"); options.addArguments("-stdlib=libc++"); #endif }
private static void SetupMacOptions(DriverOptions options) { options.MicrosoftMode = false; options.NoBuiltinIncludes = true; if (IsMacOS) { var headersPaths = new List<string> { Path.Combine(GetSourceDirectory("deps"), "llvm/tools/clang/lib/Headers"), Path.Combine(GetSourceDirectory("deps"), "libcxx", "include"), "/usr/include", }; foreach (var header in headersPaths) Console.WriteLine(header); foreach (var header in headersPaths) options.addSystemIncludeDirs(header); } var headersPath = Path.Combine(GetSourceDirectory("build"), "headers", "osx"); options.addSystemIncludeDirs(Path.Combine(headersPath, "include")); options.addSystemIncludeDirs(Path.Combine(headersPath, "clang", "4.2", "include")); options.addSystemIncludeDirs(Path.Combine(headersPath, "libcxx", "include")); options.addArguments("-stdlib=libc++"); }
private static void SetupMacOptions(DriverOptions options) { options.MicrosoftMode = false; options.NoBuiltinIncludes = true; const string MAC_INCLUDE_PATH = @"C:\Development\CppSharp\build\vs2012\lib\Release_x32\"; #if OLD_PARSER options.SystemIncludeDirs.Add(MAC_INCLUDE_PATH + @"include"); options.SystemIncludeDirs.Add(MAC_INCLUDE_PATH + @"lib\libcxx\include"); options.SystemIncludeDirs.Add(MAC_INCLUDE_PATH + @"lib\clang\4.2\include"); options.Arguments.Add("-stdlib=libc++"); #else options.addSystemIncludeDirs(MAC_INCLUDE_PATH + @"include"); options.addSystemIncludeDirs(MAC_INCLUDE_PATH + @"lib\libcxx\include"); options.addSystemIncludeDirs(MAC_INCLUDE_PATH + @"lib\clang\4.2\include"); options.addArguments("-stdlib=libc++"); #endif }
private static void SetupMacOptions(DriverOptions options) { options.MicrosoftMode = false; options.NoBuiltinIncludes = true; var headersPath = Path.Combine(GetSourceDirectory("build"), "headers", "osx"); options.addSystemIncludeDirs(Path.Combine(headersPath, "include")); options.addSystemIncludeDirs(Path.Combine(headersPath, "clang", "4.2", "include")); options.addSystemIncludeDirs(Path.Combine(headersPath, "libcxx", "include")); options.addArguments("-stdlib=libc++"); }