Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
749 B

project "Hello"
SetupNativeProject()
kind "SharedLib"
language "C++"
flags { common_flags, "Managed" }
files { "**.h", "**.cpp", "./*.lua" }
-- Autogenerated files, so not available on first build - specify them manually
excludes { "CppCsBind/*.*" }
files { "CppCsBind/hello_wrapper.h", "CppCsBind/hello_wrapper.cpp" }
configuration "hello.h"
buildrule {
description = "Compiling $(InputFile)...",
commands = {
'..\\..\\bin\\generator.exe -D=WIN32 -vs=10 -ns=CppCsBind -outdir=CppCsBind -I. hello.h',
},
outputs = { "CppCsBind\\hello_wrapper.cpp" }
}
project "SayHello"
kind "ConsoleApp"
language "C#"
location "."
files { "**.cs", "./*.lua" }
links { "Hello" }