Skip to content

Commit

Permalink
Clean option setup in SDL example.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Jan 10, 2017
1 parent 24decfa commit 2a58d51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/SDL/SDL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ class SDL : ILibrary
{
public void Setup(Driver driver)
{
var parserOptions = driver.ParserOptions;
var options = driver.Options;
options.LibraryName = "SDL";
options.Headers.Add("SDL.h");
options.OutputDir = "SDL";

var parserOptions = driver.ParserOptions;
var sdlPath = Path.Combine(GetExamplesDirectory("SDL"), "SDL-2.0/include");
parserOptions.AddIncludeDirs(sdlPath);
options.OutputDir = "SDL";
}

public void SetupPasses(Driver driver)
Expand Down

0 comments on commit 2a58d51

Please sign in to comment.