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.
 
 
 
 
 

55 lines
1.2 KiB

common_flags = { } -- Otherwise /clr won't be enabled - bug ?
solution "Hello"
platforms { "x32" }
configurations { "Debug", "Release" }
objdir ( "./obj/" )
targetdir ("./bin/")
debugdir ( "./bin/")
configuration "Debug"
defines { "DEBUG" }
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }
project "Hello"
kind "SharedLib"
language "C++"
location "."
platforms { "x32" }
flags { common_flags, "Managed" }
configuration "*"
buildoptions { common_msvc_copts, "/clr" }
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 -ns=CppCsBind -outdir=CppCsBind -I. hello.h',
},
outputs = { "CppCsBind\\hello_wrapper.cpp" }
}
project "SayHello"
kind "ConsoleApp"
language "C#"
location "."
platforms { "x32" }
files { "**.cs", "./*.lua" }
links { "Hello" }