mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
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
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", "WIN32" } |
|
|
|
configuration "Release" |
|
defines { "NDEBUG", "WIN32" } |
|
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 -D=WIN32 -vs=10 -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" } |
|
|
|
|
|
|