From 5e3d86a33fc7d9478a856c8e5eda25225581ecef Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 31 Jan 2014 15:17:56 +0000 Subject: [PATCH] Fixed parser bindings build to correctly choose the correct generated bindings depending on the platform. --- src/CppParser/Bindings/premake4.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/CppParser/Bindings/premake4.lua b/src/CppParser/Bindings/premake4.lua index 6d053993..b55937bb 100644 --- a/src/CppParser/Bindings/premake4.lua +++ b/src/CppParser/Bindings/premake4.lua @@ -21,12 +21,19 @@ project "CppSharp.Parser.CSharp" files { - "CSharp/**.cs", "**.lua" } links { "CppSharp.Runtime" } + configuration "macosx" + files { "CSharp/i686-apple-darwin12.4.0/**.cs" } + + configuration "not macosx" + files { "CSharp/*.cs" } + + configuration "" + if string.starts(action, "vs") then project "CppSharp.Parser.CLI"