Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation

Jonas Kulla

The configure script didn't differentiate between Linux and Android, unconditionally compiling in the unix implementation of SDL_sysfilesystem.c.

I'm probably one of the very few people building SDL for android using classic configure + standalone toolchain, so this has gone undetected all along.
This commit is contained in:
Philipp Wiesemann
2015-01-26 22:00:29 +01:00
commit b48e54aafe
1635 changed files with 472973 additions and 0 deletions

407
premake/projects/SDL2.lua Executable file
View File

@@ -0,0 +1,407 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
SDL2.lua
This file provides the project definition for the entire SDL2 library, on all
platforms supported by the meta-build system. That includes Windows, MinGW,
Cygwin, Mac OS X, iOS, and Linux. This project is responsible for setting up
the source trees and the complicated dependencies required to build the
final SDL2 library. In order to simplify this process, the library is split
into several different segments. Each segment focuses on a different
dependency and series of configurations which are thrown into the generated
config header file, used to build this project.
]]
SDL_project "SDL2"
SDL_isos "windows|mingw" -- all other bindings should be a shared library
SDL_kind "SharedLib"
SDL_isos "macosx|ios" -- macosx employs a static linking
SDL_kind "StaticLib"
-- the way premake generates project dependencies and how that affects linkage
-- makes it difficult to use shared libraries on Linux. Cygwin has issues
-- binding to GetProcAddress, so a static library is an easy fix.
SDL_isos "linux|cygwin"
SDL_kind "StaticLib"
SDL_language "C++"
SDL_sourcedir "../src"
-- primary platforms
SDL_isos "ios"
SDL_platforms { "iOS" }
SDL_isnotos "ios"
SDL_platforms { "native" }
-- additional platforms
SDL_isos "macosx"
SDL_platforms { "universal" }
SDL_isos "windows|mingw"
SDL_defines { "_WINDOWS" }
-- Following is the dependency tree for SDL2
-- (no SDL_os call means platform-independent)
-- The core and minimal of the SDL2 library. This will not quite build
-- standalone, but it's doable with a bit of tweaking to build this using the
-- minimal configuration header. This is a good start to adding SDL support to
-- new platforms.
SDL_config
{
["SDL_AUDIO_DRIVER_DISK"] = 1,
["SDL_AUDIO_DRIVER_DUMMY"] = 1,
["SDL_VIDEO_DRIVER_DUMMY"] = 1
}
SDL_paths
{
"/",
"/atomic/",
"/audio/",
"/audio/disk/",
"/audio/dummy/",
"/cpuinfo/",
"/dynapi/",
"/events/",
"/file/",
"/haptic/",
"/joystick/",
"/power/",
"/render/",
"/render/software/",
"/stdlib/",
"/thread/",
"/timer/",
"/video/",
"/video/dummy/"
}
-- SDL2 on Windows
SDL_dependency "windows"
SDL_os "windows|mingw"
SDL_links { "imm32", "oleaut32", "winmm", "version" }
-- these are the links that Visual Studio includes by default
SDL_links { "kernel32", "user32", "gdi32", "winspool",
"comdlg32", "advapi32", "shell32", "ole32",
"oleaut32", "uuid", "odbc32", "odbccp32" }
SDL_config
{
["SDL_LOADSO_WINDOWS"] = 1,
["SDL_THREAD_WINDOWS"] = 1,
["SDL_TIMER_WINDOWS"] = 1,
["SDL_VIDEO_DRIVER_WINDOWS"] = 1,
["SDL_POWER_WINDOWS"] = 1,
["SDL_AUDIO_DRIVER_WINMM"] = 1,
["SDL_FILESYSTEM_WINDOWS"] = 1
}
SDL_paths
{
"/audio/winmm/",
"/core/windows/",
"/libm/",
"/loadso/windows/",
"/power/windows/",
"/thread/windows/",
"/timer/windows/",
"/video/windows/",
"/filesystem/windows/"
}
SDL_files
{
-- these files have to be specified uniquely to avoid double
-- and incorrect linking
"/thread/generic/SDL_syscond.c",
"/thread/generic/SDL_sysmutex_c.h"
}
-- DirectX dependency
SDL_dependency "directx"
SDL_os "windows|mingw"
SDL_depfunc "DirectX"
SDL_config
{
["SDL_AUDIO_DRIVER_DSOUND"] = 1,
["SDL_AUDIO_DRIVER_XAUDIO2"] = 1,
["SDL_JOYSTICK_DINPUT"] = 1,
["SDL_HAPTIC_DINPUT"] = 1,
["SDL_VIDEO_RENDER_D3D"] = 1
}
SDL_paths
{
"/audio/directsound/",
"/audio/xaudio2/",
"/render/direct3d/",
-- these two depend on Xinput
"/haptic/windows/",
"/joystick/windows/",
}
-- in case DirectX was not found
SDL_dependency "notdirectx"
SDL_os "windows|mingw"
SDL_notdepfunc "DirectX"
SDL_config
{
-- enable dummy systems (same as disabling them)
["SDL_HAPTIC_DUMMY"] = 1,
["SDL_JOYSTICK_DUMMY"] = 1
}
SDL_paths
{
-- since we don't have Xinput
"/haptic/dummy/",
"/joystick/dummy/",
}
-- OpenGL dependency
SDL_dependency "opengl"
SDL_depfunc "OpenGL"
SDL_config
{
["SDL_VIDEO_OPENGL"] = 1,
["SDL_VIDEO_RENDER_OGL"] = 1
}
SDL_paths { "/render/opengl/" }
-- WGL dependency for OpenGL on Windows
SDL_dependency "opengl-windows"
SDL_os "windows|mingw"
SDL_depfunc "OpenGL"
SDL_config { ["SDL_VIDEO_OPENGL_WGL"] = 1 }
-- GLX dependency for OpenGL on Linux
SDL_dependency "opengl-linux"
SDL_os "linux"
SDL_depfunc "OpenGL"
SDL_config { ["SDL_VIDEO_OPENGL_GLX"] = 1 }
-- SDL2 on Mac OS X
SDL_dependency "macosx"
SDL_os "macosx"
SDL_config
{
["SDL_AUDIO_DRIVER_COREAUDIO"] = 1,
["SDL_JOYSTICK_IOKIT"] = 1,
["SDL_HAPTIC_IOKIT"] = 1,
["SDL_LOADSO_DLOPEN"] = 1,
["SDL_THREAD_PTHREAD"] = 1,
["SDL_THREAD_PTHREAD_RECURSIVE_MUTEX"] = 1,
["SDL_TIMER_UNIX"] = 1,
["SDL_VIDEO_DRIVER_COCOA"] = 1,
["SDL_POWER_MACOSX"] = 1,
["SDL_FILESYSTEM_COCOA"] = 1
}
SDL_paths
{
"/audio/coreaudio/",
"/file/cocoa/",
"/haptic/darwin/",
"/joystick/darwin/",
"/loadso/dlopen/",
"/power/macosx/",
"/render/opengl/",
"/thread/pthread/",
"/timer/unix/",
"/video/cocoa/",
"/video/x11/",
"/filesystem/cocoa/"
}
SDL_links
{
"CoreVideo.framework",
"AudioToolbox.framework",
"AudioUnit.framework",
"Cocoa.framework",
"CoreAudio.framework",
"IOKit.framework",
"Carbon.framework",
"ForceFeedback.framework",
"CoreFoundation.framework"
}
-- Linux dependency: DLOpen
SDL_dependency "linux-dlopen"
SDL_os "linux"
SDL_depfunc "DLOpen"
SDL_paths { "/loadso/dlopen/" }
SDL_config { ["SDL_LOADSO_DLOPEN"] = 1 }
-- Linux dependency: ALSA
SDL_dependency "linux-alsa"
SDL_os "linux"
SDL_depfunc "ALSA"
SDL_paths { "/audio/alsa/" }
SDL_config
{
["SDL_AUDIO_DRIVER_ALSA"] = 1,
["SDL_AUDIO_DRIVER_ALSA_DYNAMIC"] = '"libasound.so"'
}
-- Linux dependency: PulseAudio
SDL_dependency "linux-pulseaudio"
SDL_os "linux"
SDL_depfunc "PulseAudio"
SDL_paths { "/audio/pulseaudio/" }
SDL_config
{
["SDL_AUDIO_DRIVER_PULSEAUDIO"] = 1,
["SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC"] = '"libpulse-simple.so"'
}
-- Linux dependency: ESD
SDL_dependency "linux-esd"
SDL_os "linux"
SDL_depfunc "ESD"
SDL_paths { "/audio/esd/" }
SDL_config
{
["SDL_AUDIO_DRIVER_ESD"] = 1,
["SDL_AUDIO_DRIVER_ESD_DYNAMIC"] = '"libesd.so"'
}
-- Linux dependency: NAS
SDL_dependency "linux-nas"
SDL_os "linux"
SDL_depfunc "NAS"
SDL_paths { "/audio/nas/" }
SDL_config
{
["SDL_AUDIO_DRIVER_NAS"] = 1,
["SDL_AUDIO_DRIVER_NAS_DYNAMIC"] = '"libaudio.so"'
}
-- Linux dependency: OSS
SDL_dependency "linux-oss"
SDL_os "linux"
SDL_depfunc "OSS"
SDL_paths { "/audio/dsp/" }
SDL_config { ["SDL_AUDIO_DRIVER_OSS"] = 1 }
-- Linux dependency: X11
SDL_dependency "linux-x11"
SDL_os "linux"
SDL_depfunc "X11"
SDL_paths { "/video/x11/" }
SDL_config
{
["SDL_VIDEO_DRIVER_X11"] = 1,
["SDL_VIDEO_DRIVER_X11_DYNAMIC"] = '"libX11.so"',
["SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT"] = '"libXext.so"',
["SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR"] = '"libXcursor.so"',
["SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA"] = '"libXinerama.so"',
["SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2"] = '"libXi.so"',
["SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR"] = '"libXrandr.so"',
["SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS"] = '"libXss.so"',
["SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE"] = '"libXxf86vm.so"',
["SDL_VIDEO_DRIVER_X11_XCURSOR"] = 1,
["SDL_VIDEO_DRIVER_X11_XINERAMA"] = 1,
["SDL_VIDEO_DRIVER_X11_XINPUT2"] = 1,
["SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH"] = 1,
["SDL_VIDEO_DRIVER_X11_XRANDR"] = 1,
["SDL_VIDEO_DRIVER_X11_XSCRNSAVER"] = 1,
["SDL_VIDEO_DRIVER_X11_XSHAPE"] = 1,
["SDL_VIDEO_DRIVER_X11_XVIDMODE"] = 1,
["SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS"] = 1,
["SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY"] = 1,
["SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM"] = 1
}
-- SDL2 on Linux
SDL_dependency "linux"
SDL_os "linux"
SDL_depfunc "DBus"
SDL_config
{
["SDL_INPUT_LINUXEV"] = 1,
["SDL_JOYSTICK_LINUX"] = 1,
["SDL_HAPTIC_LINUX"] = 1,
["SDL_THREAD_PTHREAD"] = 1,
["SDL_THREAD_PTHREAD_RECURSIVE_MUTEX"] = 1,
["SDL_TIMER_UNIX"] = 1,
["SDL_POWER_LINUX"] = 1,
["SDL_FILESYSTEM_UNIX"] = 1,
}
SDL_paths
{
"/haptic/linux/",
"/joystick/linux/",
"/power/linux/",
"/thread/pthread/",
"/timer/unix/",
"/filesystem/unix/"
}
SDL_links
{
"m",
"pthread",
"rt"
}
-- SDL2 on Cygwin (not quite working yet)
SDL_dependency "cygwin"
SDL_os "cygwin"
SDL_config
{
['SDL_JOYSTICK_DISABLED'] = 1,
['SDL_HAPTIC_DISABLED'] = 1,
['SDL_LOADSO_DLOPEN'] = 1,
['SDL_THREAD_PTHREAD'] = 1,
['SDL_THREAD_PTHREAD_RECURSIVE_MUTEX'] = 1,
['SDL_TIMER_UNIX'] = 1,
['SDL_FILESYSTEM_UNIX'] = 1,
['SDL_POWER_LINUX'] = 1
}
SDL_paths
{
"/loadso/dlopen/",
"/power/linux/",
"/render/opengl/",
"/thread/pthread/",
"/timer/unix/",
"/filesystem/unix/",
"/libm/"
}
-- SDL2 on iOS
SDL_dependency "iphoneos"
SDL_os "ios"
SDL_config
{
["SDL_AUDIO_DRIVER_COREAUDIO"] = 1,
["SDL_JOYSTICK_DISABLED"] = 0,
["SDL_HAPTIC_DISABLED"] = 1,
["SDL_LOADSO_DISABLED"] = 1,
["SDL_THREAD_PTHREAD"] = 1,
["SDL_THREAD_PTHREAD_RECURSIVE_MUTEX"] = 1,
["SDL_TIMER_UNIX"] = 1,
["SDL_VIDEO_DRIVER_UIKIT"] = 1,
["SDL_VIDEO_OPENGL_ES"] = 1,
["SDL_VIDEO_RENDER_OGL_ES"] = 1,
["SDL_VIDEO_RENDER_OGL_ES2"] = 1,
["SDL_POWER_UIKIT"] = 1,
["SDL_IPHONE_KEYBOARD"] = 1,
["SDL_FILESYSTEM_COCOA"] = 1
}
SDL_paths
{
"/audio/coreaudio/",
"/file/cocoa/",
"/joystick/iphoneos/",
"/loadso/dlopen/",
"/power/uikit/",
"/render/opengles/",
"/render/opengles2/",
"/thread/pthread/",
"/timer/unix/",
"/video/uikit/",
"/filesystem/cocoa/"
}
SDL_links
{
"$(SDKROOT)/AudioToolbox.framework",
"$(SDKROOT)/QuartzCore.framework",
"$(SDKROOT)/OpenGLES.framework",
"$(SDKROOT)/CoreGraphics.framework",
"$(SDKROOT)/UIKit.framework",
"$(SDKROOT)/Foundation.framework",
"$(SDKROOT)/CoreAudio.framework",
"$(SDKROOT)/CoreMotion.framework"
}

31
premake/projects/SDL2main.lua Executable file
View File

@@ -0,0 +1,31 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
SDL2main.lua
This file defines the SDL2main project which builds the SDL2main static
library for Windows and Mac. This project is primarily for everything but
Linux.
]]
SDL_project "SDL2main"
SDL_kind "StaticLib"
SDL_language "C"
SDL_sourcedir "../src"
SDL_dependency "windows"
SDL_os "windows|mingw"
SDL_paths { "/main/windows/" }
SDL_dependency "macosx or ios"
SDL_os "macosx|ios|cygwin"
SDL_paths { "/main/dummy/" }

28
premake/projects/SDL2test.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
SDL2test.lua
This file defines the SDL2test library. It depends on the SDL2main and SDL2
projects. This library contains a series of test functions used by many of the
other test projects, so it is one of the main dependencies for much of the
test suite.
]]
SDL_project "SDL2test"
SDL_kind "StaticLib"
SDL_language "C"
SDL_sourcedir "../src"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_paths { "/test/" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
accelerometer.lua
This file defines the accelerometer demo project for iOS. This project is only
compatible on iOS and depends on SDL2. It is a windowed application.
]]
SDL_project "accelerometer"
SDL_kind "WindowedApp"
SDL_os "ios"
SDL_language "C"
SDL_sourcedir "../Xcode-iOS/Demos"
SDL_projectLocation "Demos"
SDL_projectDependencies { "SDL2" }
SDL_files { "/src/common.*", "/src/accelerometer.*", "/Info.plist", "/data/ship.bmp", "/data/space.bmp" }

28
premake/projects/checkkeys.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
checkkeys.lua
This file defines the checkkeys test application. This application will not be
builts on iOS or Cygwin. It depends on the SDL2 and SDL2main projects.
]]
SDL_project "checkkeys"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/checkkeys.*" }

28
premake/projects/fireworks.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
fireworks.lua
This file defines the fireworks demo project for iOS. This project is only
compatible on iOS and depends on SDL2. It is a windowed application.
]]
SDL_project "fireworks"
SDL_kind "WindowedApp"
SDL_os "ios"
SDL_language "C"
SDL_sourcedir "../Xcode-iOS/Demos"
SDL_projectLocation "Demos"
SDL_projectDependencies { "SDL2" }
SDL_files { "/src/common.*", "/src/fireworks.*", "/Info.plist", "/data/stroke.bmp" }

28
premake/projects/happy.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
happy.lua
This file defines the happy demo project for iOS. This project is only
compatible on iOS and depends on SDL2. It is a windowed application.
]]
SDL_project "happy"
SDL_kind "WindowedApp"
SDL_os "ios"
SDL_language "C"
SDL_sourcedir "../Xcode-iOS/Demos"
SDL_projectLocation "Demos"
SDL_projectDependencies { "SDL2" }
SDL_files { "/src/common.*", "/src/happy.*", "/Info.plist", "/data/icon.bmp" }

28
premake/projects/keyboard.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
keyboard.lua
This file defines the keyboard demo project for iOS. This project is only
compatible on iOS and depends on SDL2. It is a windowed application.
]]
SDL_project "keyboard"
SDL_kind "WindowedApp"
SDL_os "ios"
SDL_language "C"
SDL_sourcedir "../Xcode-iOS/Demos"
SDL_projectLocation "Demos"
SDL_projectDependencies { "SDL2" }
SDL_files { "/src/common.*", "/src/keyboard.*", "/Info.plist", "/data/bitmapfont/kromasky_16x16.bmp" }

30
premake/projects/loopwave.lua Executable file
View File

@@ -0,0 +1,30 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
loopwave.lua
This file defines the loopwave test application. This project will not build
on iOS or Cygwin. It depends on the SDL2 and SDL2main projects.
]]
SDL_project "loopwave"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
-- a list of items to copy from the sourcedir to the destination
SDL_copy { "sample.wav" }
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/loopwave.*" }

30
premake/projects/mixer.lua Executable file
View File

@@ -0,0 +1,30 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
mixer.lua
This file defines the mixer demo project for iOS. This project is only
compatible on iOS and depends on SDL2. It is a windowed application.
]]
SDL_project "mixer"
SDL_kind "WindowedApp"
SDL_os "ios"
SDL_language "C"
SDL_sourcedir "../Xcode-iOS/Demos"
SDL_projectLocation "Demos"
SDL_projectDependencies { "SDL2" }
SDL_files { "/src/common.*", "/src/mixer.*", "/Info.plist",
"/data/drums/ds_kick_big_amb.wav", "/data/drums/ds_brush_snare.wav",
"/data/drums/ds_loose_skin_mute.wav", "/data/drums/ds_china.wav" }

28
premake/projects/rectangles.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
rectangles.lua
This file defines the rectangles demo project for iOS. This project is only
compatible on iOS and depends on SDL2. It is a windowed application.
]]
SDL_project "rectangles"
SDL_kind "WindowedApp"
SDL_os "ios"
SDL_language "C"
SDL_sourcedir "../Xcode-iOS/Demos"
SDL_projectLocation "Demos"
SDL_projectDependencies { "SDL2" }
SDL_files { "/src/common.*", "/src/rectangles.*", "/Info.plist", }

28
premake/projects/testatomic.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testatomic.lua
This file defines the testatomic test project. It depends on the SDL2main and
SDL2 projects. It will not build on iOS.
]]
SDL_project "testatomic"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testatomic.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testaudioinfo.lua
This file defines the testaudioinfo test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testaudioinfo"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testaudioinfo.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testautomation.lua
This file defines the testautomation test project. It depends on the SDL2main,
SDL2test, and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testautomation"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
SDL_files { "/testautomation*" }

28
premake/projects/testdraw2.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testdraw2.lua
This file defines the testdraw2 test project. It depends on the SDL2main,
SDL2test, and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testdraw2"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
SDL_files { "/testdraw2.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testchessboard.lua
This file defines the testchessboard test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testchessboard"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testdrawchessboard.*" }

28
premake/projects/testerror.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testerror.lua
This file defines the testerror test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS.
]]
SDL_project "testerror"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testerror.*" }

28
premake/projects/testfile.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testfile.lua
This file defines the testfile test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS.
]]
SDL_project "testfile"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testfile.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testfilesystem.lua
This file defines the testfilesystem test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testfilesystem"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testfilesystem.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testgamecontroller.lua
This file defines the testgamecontroller test project. It depends on the
SDL2main and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testgamecontroller"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testgamecontroller.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testgesture.lua
This file defines the testgesture test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testgesture"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testgesture.*" }

34
premake/projects/testgl2.lua Executable file
View File

@@ -0,0 +1,34 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testgl2.lua
This file defines the testgl2 test project. It depends on the SDL2main,
SDL2test, and SDL2 projects. It will not build on iOS or Cygwin. This project
has a dependency on OpenGL and will specially supply a preprocessor definition
for indicating OpenGL support.
]]
SDL_project "testgl2"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
SDL_defines { "HAVE_OPENGL" }
SDL_dependency "OpenGL"
-- opengl is platform independent
SDL_depfunc "OpenGL"
SDL_files { "/testgl2.*" }

28
premake/projects/testgles.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testgles.lua
This file defines the testgles test project. It depends on the SDL2main,
SDL2test, and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testgles"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
SDL_files { "/testgles.*" }

28
premake/projects/testhaptic.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testhaptic.lua
This file defines the testhaptic test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testhaptic"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testhaptic.*" }

29
premake/projects/testiconv.lua Executable file
View File

@@ -0,0 +1,29 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testiconv.lua
This file defines the testiconv test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testiconv"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testiconv.*" }
SDL_copy { "utf8.txt" }

28
premake/projects/testime.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testime.lua
This file defines the testime test project. It depends on the SDL2main,
SDL2test, and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testime"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
SDL_files { "/testime.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testintersection.lua
This file defines the testintersection test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testintersection"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testintersection.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testjoystick.lua
This file defines the testjoystick test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testjoystick"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testjoystick.*" }

28
premake/projects/testkeys.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testkeys.lua
This file defines the testkeys test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testkeys"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testkeys.*" }

28
premake/projects/testloadso.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testloadso.lua
This file defines the testloadso test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS.
]]
SDL_project "testloadso"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testloadso.*" }

28
premake/projects/testlock.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testlock.lua
This file defines the testlock test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS.
]]
SDL_project "testlock"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testlock.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testmessage.lua
This file defines the testmessage test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testmessage"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testmessage.*" }

View File

@@ -0,0 +1,29 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testmultiaudio.lua
This file defines the testmultiaudio test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testmultiaudio"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testmultiaudio.*" }
SDL_copy { "sample.wav" }

40
premake/projects/testnative.lua Executable file
View File

@@ -0,0 +1,40 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testnative.lua
This file defines the testnative test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin. This project has
specialized dependencies separate to Windows/MinGW, Mac OS X, and Linux.
]]
SDL_project "testnative"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testnative.*" }
SDL_copy { "icon.bmp" }
SDL_dependency "windows"
SDL_os "windows|mingw"
SDL_files { "/testnativew32.*" }
SDL_dependency "macosx"
SDL_os "macosx"
SDL_files { "/testnativecocoa.*" }
SDL_dependency "linux"
SDL_os "linux"
SDL_depfunc "X11"
SDL_files { "/testnativex11.*" }

View File

@@ -0,0 +1,30 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testoverlay2.lua
This file defines the testoverlay2 test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testoverlay2"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
-- a list of items to copy from the sourcedir to the destination
SDL_copy { "moose.dat" }
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testoverlay2.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testplatform.lua
This file defines the testplatform test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS.
]]
SDL_project "testplatform"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testplatform.*" }

28
premake/projects/testpower.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testpower.lua
This file defines the testpower test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS.
]]
SDL_project "testpower"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testpower.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testrelative.lua
This file defines the testrelative test project. It depends on the SDL2main,
SDL2test, and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testrelative"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
SDL_files { "/testrelative.*" }

View File

@@ -0,0 +1,29 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testrendercopyex.lua
This file defines the testrendercopyx test project. It depends on the
SDL2main, SDL2test, and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testrendercopyex"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
SDL_files { "/testrendercopyex.*" }
SDL_copy { "icon.bmp", "sample.bmp" }

View File

@@ -0,0 +1,30 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testrendertarget.lua
This file defines the testrendertarget test project. It depends on the
SDL2main, SDL2test, and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testrendertarget"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
-- a list of items to copy from the sourcedir to the destination
SDL_copy { "sample.bmp", "icon.bmp" }
SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
SDL_files { "/testrendertarget.*" }

View File

@@ -0,0 +1,30 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testresample.lua
This file defines the testresample test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testresample"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
-- a list of items to copy from the sourcedir to the destination
SDL_copy { "sample.wav" }
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testresample.*" }

28
premake/projects/testrumble.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testrumble.lua
This file defines the testrumble test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testrumble"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testrumble.*" }

30
premake/projects/testscale.lua Executable file
View File

@@ -0,0 +1,30 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testscale.lua
This file defines the testscale test project. It depends on the SDL2main,
SDL2test, and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testscale"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
-- a list of items to copy from the sourcedir to the destination
SDL_copy { "sample.bmp", "icon.bmp" }
SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
SDL_files { "/testscale.*" }

28
premake/projects/testsem.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testsem.lua
This file defines the testsem test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS.
]]
SDL_project "testsem"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testsem.*" }

35
premake/projects/testshader.lua Executable file
View File

@@ -0,0 +1,35 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testshader.lua
This file defines the testshader test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin. This project has a
dependency on OpenGL.
]]
SDL_project "testshader"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
-- a list of items to copy from the sourcedir to the destination
SDL_copy { "icon.bmp" }
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_defines { "HAVE_OPENGL" }
SDL_dependency "OpenGL"
-- opengl is platform independent
SDL_depfunc "OpenGL"
SDL_files { "/testshader.*" }

32
premake/projects/testshape.lua Executable file
View File

@@ -0,0 +1,32 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testshape.lua
This file defines the testshape test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin. This project has a
unique SDL_copy directive, since it copies from a subdirectory and it copies
all the files of a specific type.
]]
SDL_project "testshape"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
-- a list of items to copy from the sourcedir to the destination
SDL_copy { "shapes/*.bmp" }
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testshape.*" }

View File

@@ -0,0 +1,30 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testsprite2.lua
This file defines the testsprite2 test project. It depends on the SDL2main,
SDL2test, and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testsprite2"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
-- a list of items to copy from the sourcedir to the destination
SDL_copy { "icon.bmp" }
SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
SDL_files { "/testsprite2.*" }

View File

@@ -0,0 +1,29 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testspriteminimal.lua
This file defines the testspriteminimal test project. It depends on the
SDL2main and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testspriteminimal"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testspriteminimal.*" }
SDL_copy { "icon.bmp" }

View File

@@ -0,0 +1,29 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
teststreaming.lua
This file defines the teststreaming test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "teststreaming"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/teststreaming.*" }
SDL_copy { "moose.dat" }

28
premake/projects/testthread.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testthread.lua
This file defines the testthread test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS.
]]
SDL_project "testthread"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testthread.*" }

28
premake/projects/testtimer.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testtimer.lua
This file defines the testtimer test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS.
]]
SDL_project "testtimer"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testtimer.*" }

28
premake/projects/testver.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testver.lua
This file defines the testver test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS.
]]
SDL_project "testver"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/testver.*" }

28
premake/projects/testwm2.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
testwm2.lua
This file defines the testwm2 test project. It depends on the SDL2main,
SDL2test, and SDL2 projects. It will not build on iOS or Cygwin.
]]
SDL_project "testwm2"
SDL_kind "ConsoleApp"
SDL_notos "ios|cygwin"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
SDL_files { "/testwm2.*" }

View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
torturethread.lua
This file defines the torturethread test project. It depends on the SDL2main
and SDL2 projects. It will not build on iOS.
]]
SDL_project "torturethread"
SDL_kind "ConsoleApp"
SDL_notos "ios"
SDL_language "C"
SDL_sourcedir "../test"
SDL_projectLocation "tests"
SDL_projectDependencies { "SDL2main", "SDL2" }
SDL_files { "/torturethread.*" }

28
premake/projects/touch.lua Executable file
View File

@@ -0,0 +1,28 @@
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely.
--
-- Meta-build system using premake created and maintained by
-- Benjamin Henning <b.henning@digipen.edu>
--[[
touch.lua
This file defines the touch demo project for iOS. This project is only
compatible on iOS and depends on SDL2. It is a windowed application.
]]
SDL_project "touch"
SDL_kind "WindowedApp"
SDL_os "ios"
SDL_language "C"
SDL_sourcedir "../Xcode-iOS/Demos"
SDL_projectLocation "Demos"
SDL_projectDependencies { "SDL2" }
SDL_files { "/src/common.*", "/src/touch.*", "/Info.plist", "/data/stroke.bmp" }