premake/projects/testnative.lua
author Sam Lantinga
Thu, 01 Sep 2016 01:26:56 -0700
changeset 10304 ee83e0b4a36f
parent 9998 f67cf37e9cd4
permissions -rwxr-xr-x
wayland: Add support for relative mouse mode, by Jonas Ã…dahl <jadahl@gmail.com>

Generate the C protocol files from the protocol XML files installed by
wayland-protocols, and use them to implement support for relative pointer
motions and pointer locking.

Note that at the time, the protocol is unstable and may change in the future.
Any future breaking changes will, however, fail gracefully and result in no
regressions compared to before this patch.
slouken@9998
     1
-- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
icculus@7925
     2
--
icculus@7925
     3
-- This software is provided 'as-is', without any express or implied
icculus@7925
     4
-- warranty.  In no event will the authors be held liable for any damages
icculus@7925
     5
-- arising from the use of this software.
icculus@7925
     6
--
icculus@7925
     7
-- Permission is granted to anyone to use this software for any purpose,
icculus@7925
     8
-- including commercial applications, and to alter it and redistribute it
icculus@7925
     9
-- freely.
icculus@7925
    10
--
icculus@7925
    11
-- Meta-build system using premake created and maintained by
icculus@7925
    12
-- Benjamin Henning <b.henning@digipen.edu>
icculus@7925
    13
icculus@7925
    14
--[[
icculus@7925
    15
testnative.lua
icculus@7925
    16
icculus@7925
    17
	This file defines the testnative test project. It depends on the SDL2main
icculus@7925
    18
	and SDL2 projects. It will not build on iOS or Cygwin. This project has
icculus@7925
    19
	specialized dependencies separate to Windows/MinGW, Mac OS X, and Linux.
icculus@7925
    20
]]
icculus@7925
    21
icculus@7925
    22
SDL_project "testnative"
icculus@7925
    23
	SDL_kind "ConsoleApp"
icculus@7925
    24
	SDL_notos "ios|cygwin"
icculus@7925
    25
	SDL_language "C"
icculus@7925
    26
	SDL_sourcedir "../test"
icculus@7925
    27
	SDL_projectLocation "tests"
icculus@7925
    28
	SDL_projectDependencies { "SDL2main", "SDL2" }
icculus@7925
    29
	SDL_files { "/testnative.*" }
icculus@7925
    30
	SDL_copy { "icon.bmp" }
icculus@7925
    31
	SDL_dependency "windows"
icculus@7925
    32
		SDL_os "windows|mingw"
icculus@7925
    33
		SDL_files { "/testnativew32.*" }
icculus@7925
    34
	SDL_dependency "macosx"
icculus@7925
    35
		SDL_os "macosx"
icculus@7925
    36
		SDL_files { "/testnativecocoa.*" }
icculus@7925
    37
	SDL_dependency "linux"
icculus@7925
    38
		SDL_os "linux"
icculus@7925
    39
		SDL_depfunc "X11"
slouken@8149
    40
		SDL_files { "/testnativex11.*" }