Browse Source

Updated the SDL example.

pull/1/head
triton 13 years ago
parent
commit
4ee4c719df
  1. 9
      examples/SDL/SDL.cs
  2. 55
      examples/SDL/premake4.lua

9
examples/SDL/SDL.cs

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
using System.Collections.Generic;
using Cxxi.Generators;
using Cxxi.Generators;
using Cxxi.Passes;
namespace Cxxi
@ -12,8 +11,8 @@ namespace Cxxi @@ -12,8 +11,8 @@ namespace Cxxi
public void Setup(DriverOptions options)
{
options.LibraryName = "SDL";
options.Headers.Add("SDL/SDL.h");
options.IncludeDirs.Add(".");
options.Headers.Add("SDL.h");
options.IncludeDirs.Add("SDL-2.0/include");
options.OutputDir = "SDL";
}
@ -79,7 +78,7 @@ namespace Cxxi @@ -79,7 +78,7 @@ namespace Cxxi
{
public static void Main(string[] args)
{
Cxxi.Program.Run(new SDL());
Driver.Run(new SDL());
}
}
}

55
examples/SDL/premake4.lua

@ -0,0 +1,55 @@ @@ -0,0 +1,55 @@
project "SDL"
kind "ConsoleApp"
language "C#"
location "."
debugdir "."
files { "**.cs", "./*.lua" }
links { "Bridge", "Generator" }
project "SDL.Tests"
kind "ConsoleApp"
language "C#"
location "."
dependson "SDL"
files
{
libdir .. "/SDL/SDL.cs",
libdir .. "/SDL/SDL_assert.cs",
libdir .. "/SDL/SDL_audio.cs",
libdir .. "/SDL/SDL_blendmode.cs",
libdir .. "/SDL/SDL_clipboard.cs",
libdir .. "/SDL/SDL_cpuinfo.cs",
libdir .. "/SDL/SDL_error.cs",
libdir .. "/SDL/SDL_events.cs",
libdir .. "/SDL/SDL_gamecontroller.cs",
libdir .. "/SDL/SDL_gesture.cs",
libdir .. "/SDL/SDL_hints.cs",
libdir .. "/SDL/SDL_joystick.cs",
libdir .. "/SDL/SDL_keyboard.cs",
libdir .. "/SDL/SDL_keycode.cs",
libdir .. "/SDL/SDL_loadso.cs",
libdir .. "/SDL/SDL_log.cs",
libdir .. "/SDL/SDL_messagebox.cs",
libdir .. "/SDL/SDL_mouse.cs",
libdir .. "/SDL/SDL_pixels.cs",
libdir .. "/SDL/SDL_platform.cs",
libdir .. "/SDL/SDL_power.cs",
libdir .. "/SDL/SDL_rect.cs",
libdir .. "/SDL/SDL_render.cs",
libdir .. "/SDL/SDL_rwops.cs",
libdir .. "/SDL/SDL_scancode.cs",
libdir .. "/SDL/SDL_surface.cs",
libdir .. "/SDL/SDL_thread.cs",
libdir .. "/SDL/SDL_timer.cs",
libdir .. "/SDL/SDL_touch.cs",
libdir .. "/SDL/SDL_version.cs",
libdir .. "/SDL/SDL_video.cs",
"*.lua"
}
Loading…
Cancel
Save