diff --git a/src/CppParser/Bindings/CSharp/premake5.lua b/src/CppParser/Bindings/CSharp/premake5.lua index dc5f20ba..b645396e 100644 --- a/src/CppParser/Bindings/CSharp/premake5.lua +++ b/src/CppParser/Bindings/CSharp/premake5.lua @@ -32,37 +32,6 @@ project "CppSharp.Parser.CSharp" filter {} -project "Std-symbols" - - kind "SharedLib" - language "C++" - SetupNativeProject() - rtti "Off" - - filter { "action:vs*" } - buildoptions { clang_msvc_flags } - - filter {} - - if os.istarget("windows") then - files { "i686-pc-win32-msvc/Std-symbols.cpp" } - elseif os.istarget("macosx") then - local file = io.popen("lipo -info `which mono`") - local output = file:read('*all') - if string.find(output, "x86_64") then - files { "x86_64-apple-darwin12.4.0/Std-symbols.cpp" } - else - files { "i686-apple-darwin12.4.0/Std-symbols.cpp" } - end - - elseif os.istarget("linux") then - files { "x86_64-linux-gnu/Std-symbols.cpp" } - else - print "Unknown architecture" - end - - filter {} - function SetupParser() links { diff --git a/src/CppParser/premake5.lua b/src/CppParser/premake5.lua index 8b777233..4f544aac 100644 --- a/src/CppParser/premake5.lua +++ b/src/CppParser/premake5.lua @@ -40,4 +40,35 @@ project "CppSharp.CppParser" CopyClangIncludes() filter {} -end \ No newline at end of file +end + +project "Std-symbols" + + kind "SharedLib" + language "C++" + SetupNativeProject() + rtti "Off" + + filter { "action:vs*" } + buildoptions { clang_msvc_flags } + + filter {} + + if os.istarget("windows") then + files { "i686-pc-win32-msvc/Std-symbols.cpp" } + elseif os.istarget("macosx") then + local file = io.popen("lipo -info `which mono`") + local output = file:read('*all') + if string.find(output, "x86_64") then + files { "x86_64-apple-darwin12.4.0/Std-symbols.cpp" } + else + files { "i686-apple-darwin12.4.0/Std-symbols.cpp" } + end + + elseif os.istarget("linux") then + files { "x86_64-linux-gnu/Std-symbols.cpp" } + else + print "Unknown architecture" + end + + filter {} \ No newline at end of file