Browse Source

Changed the example to show include and library dirs.

pull/809/head
Dimitar Dobrev 9 years ago committed by GitHub
parent
commit
b40aea7583
  1. 6
      docs/GeneratingBindings.md

6
docs/GeneratingBindings.md

@ -1,7 +1,7 @@
# Generating bindings # Generating bindings
Suppose we have the following declarations in a file named `Sample.h` and we Suppose we have the following declarations in a file named `Sample.h` located
want to bind it to .NET. in `C:\Sample\include` and we want to bind it to .NET.
```csharp ```csharp
class Foo class Foo
@ -77,7 +77,9 @@ void Setup(Driver driver)
var options = driver.Options; var options = driver.Options;
options.GeneratorKind = GeneratorKind.CSharp; options.GeneratorKind = GeneratorKind.CSharp;
var module = options.AddModule("Sample"); var module = options.AddModule("Sample");
module.IncludeDirs.Add("C:\Sample\include");
module.Headers.Add("Sample.h"); module.Headers.Add("Sample.h");
module.LibraryDirs.Add("C:\Sample\lib");
module.Libraries.Add("Sample.lib"); module.Libraries.Add("Sample.lib");
} }
``` ```

Loading…
Cancel
Save